diff options
author | Tobias Schmidt <tobidt@gmail.com> | 2017-02-28 16:36:35 -0400 |
---|---|---|
committer | Tobias Schmidt <tobidt@gmail.com> | 2017-02-28 17:20:16 -0400 |
commit | 1bd94074dddb41d2aeccc17108b0b355a911ae02 (patch) | |
tree | 6f8267f06527f5db8a0f1a5283e0616f0658d376 /collector/helper.go | |
parent | a7da926abb3a97d33908e7e8f57c0773f2c1a306 (diff) | |
download | prometheus_node_collector-1bd94074dddb41d2aeccc17108b0b355a911ae02.tar.bz2 prometheus_node_collector-1bd94074dddb41d2aeccc17108b0b355a911ae02.tar.xz prometheus_node_collector-1bd94074dddb41d2aeccc17108b0b355a911ae02.zip |
Delete unused code
Diffstat (limited to 'collector/helper.go')
-rw-r--r-- | collector/helper.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/collector/helper.go b/collector/helper.go index 60168f2..2bf461e 100644 --- a/collector/helper.go +++ b/collector/helper.go | |||
@@ -14,24 +14,11 @@ | |||
14 | package collector | 14 | package collector |
15 | 15 | ||
16 | import ( | 16 | import ( |
17 | "fmt" | ||
18 | "io/ioutil" | 17 | "io/ioutil" |
19 | "strconv" | 18 | "strconv" |
20 | "strings" | 19 | "strings" |
21 | ) | 20 | ) |
22 | 21 | ||
23 | func splitToInts(str, sep string) ([]int, error) { | ||
24 | var ints []int | ||
25 | for _, part := range strings.Split(str, sep) { | ||
26 | i, err := strconv.Atoi(part) | ||
27 | if err != nil { | ||
28 | return nil, fmt.Errorf("could not split '%s' because %s is no int: %s", str, part, err) | ||
29 | } | ||
30 | ints = append(ints, i) | ||
31 | } | ||
32 | return ints, nil | ||
33 | } | ||
34 | |||
35 | func readUintFromFile(path string) (uint64, error) { | 22 | func readUintFromFile(path string) (uint64, error) { |
36 | data, err := ioutil.ReadFile(path) | 23 | data, err := ioutil.ReadFile(path) |
37 | if err != nil { | 24 | if err != nil { |