Remove unused func, var, and const (#928)

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
This commit is contained in:
Mario Trangoni 2018-04-29 14:35:43 +02:00 committed by Johannes 'fish' Ziemke
parent c9f421d0dd
commit 24a28fcc9e
3 changed files with 0 additions and 11 deletions

View file

@ -42,10 +42,6 @@ var (
)
)
func warnDeprecated(collector string) {
log.Warnf("The %s collector is deprecated and will be removed in the future!", collector)
}
const (
defaultEnabled = true
defaultDisabled = false

View file

@ -19,7 +19,6 @@ import (
"fmt"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
@ -28,10 +27,6 @@ import (
"github.com/prometheus/procfs"
)
var (
digitRegexp = regexp.MustCompile("[0-9]+")
)
type cpuCollector struct {
cpu *prometheus.Desc
cpuGuest *prometheus.Desc

View file

@ -22,7 +22,6 @@ import (
"path/filepath"
"sort"
"strings"
"sync"
"time"
"github.com/prometheus/client_golang/prometheus"
@ -34,7 +33,6 @@ import (
var (
textFileDirectory = kingpin.Flag("collector.textfile.directory", "Directory to read text files with metrics from.").Default("").String()
textFileAddOnce sync.Once
mtimeDesc = prometheus.NewDesc(
"node_textfile_mtime_seconds",
"Unixtime mtime of textfiles successfully read.",