Clean up unused struct fields (via structcheck linter)
This commit is contained in:
parent
b9ff5c098c
commit
1f679cee70
@ -48,16 +48,6 @@ type dockerContainerHandler struct {
|
|||||||
aliases []string
|
aliases []string
|
||||||
machineInfoFactory info.MachineInfoFactory
|
machineInfoFactory info.MachineInfoFactory
|
||||||
|
|
||||||
// Path to the libcontainer config file.
|
|
||||||
libcontainerConfigPath string
|
|
||||||
|
|
||||||
// Path to the libcontainer state file.
|
|
||||||
libcontainerStatePath string
|
|
||||||
|
|
||||||
// TODO(vmarmol): Remove when we depend on a newer Docker.
|
|
||||||
// Path to the libcontainer pid file.
|
|
||||||
libcontainerPidPath string
|
|
||||||
|
|
||||||
// Absolute path to the cgroup hierarchies of this container.
|
// Absolute path to the cgroup hierarchies of this container.
|
||||||
// (e.g.: "cpu" -> "/sys/fs/cgroup/cpu/test")
|
// (e.g.: "cpu" -> "/sys/fs/cgroup/cpu/test")
|
||||||
cgroupPaths map[string]string
|
cgroupPaths map[string]string
|
||||||
|
@ -115,9 +115,6 @@ type watch struct {
|
|||||||
request *Request
|
request *Request
|
||||||
// a channel used to send event back to the caller.
|
// a channel used to send event back to the caller.
|
||||||
eventChannel *EventChannel
|
eventChannel *EventChannel
|
||||||
// unique identifier of a watch that is used as a key in events' watchers
|
|
||||||
// map
|
|
||||||
id int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewEventChannel(watchId int) *EventChannel {
|
func NewEventChannel(watchId int) *EventChannel {
|
||||||
|
@ -21,7 +21,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"regexp"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
@ -190,7 +189,6 @@ type manager struct {
|
|||||||
quitChannels []chan error
|
quitChannels []chan error
|
||||||
cadvisorContainer string
|
cadvisorContainer string
|
||||||
inHostNamespace bool
|
inHostNamespace bool
|
||||||
dockerContainersRegexp *regexp.Regexp
|
|
||||||
loadReader cpuload.CpuLoadReader
|
loadReader cpuload.CpuLoadReader
|
||||||
eventHandler events.EventManager
|
eventHandler events.EventManager
|
||||||
startupTime time.Time
|
startupTime time.Time
|
||||||
|
Loading…
Reference in New Issue
Block a user