From 019bfaecc7f557b6b2fc60c524608dabc45ca864 Mon Sep 17 00:00:00 2001 From: "Tim St. Clair" Date: Fri, 6 May 2016 13:45:29 -0700 Subject: [PATCH] Delete unused ListThreads container method --- container/container.go | 3 --- container/docker/handler.go | 5 ----- container/mock.go | 5 ----- container/raw/handler.go | 5 ----- container/rkt/handler.go | 5 ----- 5 files changed, 23 deletions(-) diff --git a/container/container.go b/container/container.go index f925a5e5..ef64e69d 100644 --- a/container/container.go +++ b/container/container.go @@ -58,9 +58,6 @@ type ContainerHandler interface { // Returns the subcontainers of this container. ListContainers(listType ListType) ([]info.ContainerReference, error) - // Returns the threads inside this container. - ListThreads(listType ListType) ([]int, error) - // Returns the processes inside this container. ListProcesses(listType ListType) ([]int, error) diff --git a/container/docker/handler.go b/container/docker/handler.go index d94b7177..3f95d1c9 100644 --- a/container/docker/handler.go +++ b/container/docker/handler.go @@ -323,11 +323,6 @@ func (self *dockerContainerHandler) GetCgroupPath(resource string) (string, erro return path, nil } -func (self *dockerContainerHandler) ListThreads(listType container.ListType) ([]int, error) { - // TODO(vmarmol): Implement. - return nil, nil -} - func (self *dockerContainerHandler) GetContainerLabels() map[string]string { return self.labels } diff --git a/container/mock.go b/container/mock.go index b4c69762..cc79762e 100644 --- a/container/mock.go +++ b/container/mock.go @@ -72,11 +72,6 @@ func (self *MockContainerHandler) ListContainers(listType ListType) ([]info.Cont return args.Get(0).([]info.ContainerReference), args.Error(1) } -func (self *MockContainerHandler) ListThreads(listType ListType) ([]int, error) { - args := self.Called(listType) - return args.Get(0).([]int), args.Error(1) -} - func (self *MockContainerHandler) ListProcesses(listType ListType) ([]int, error) { args := self.Called(listType) return args.Get(0).([]int), args.Error(1) diff --git a/container/raw/handler.go b/container/raw/handler.go index 3cae026b..55645316 100644 --- a/container/raw/handler.go +++ b/container/raw/handler.go @@ -272,11 +272,6 @@ func (self *rawContainerHandler) ListContainers(listType container.ListType) ([] return common.ListContainers(self.name, self.cgroupPaths, listType) } -func (self *rawContainerHandler) ListThreads(listType container.ListType) ([]int, error) { - // TODO(vmarmol): Implement - return nil, nil -} - func (self *rawContainerHandler) ListProcesses(listType container.ListType) ([]int, error) { return libcontainer.GetProcesses(self.cgroupManager) } diff --git a/container/rkt/handler.go b/container/rkt/handler.go index a6b95a19..579763fb 100644 --- a/container/rkt/handler.go +++ b/container/rkt/handler.go @@ -262,11 +262,6 @@ func (handler *rktContainerHandler) ListContainers(listType container.ListType) return common.ListContainers(handler.name, handler.cgroupPaths, listType) } -func (handler *rktContainerHandler) ListThreads(listType container.ListType) ([]int, error) { - // TODO(sjpotter): Implement? Not implemented with docker yet - return nil, nil -} - func (handler *rktContainerHandler) ListProcesses(listType container.ListType) ([]int, error) { return libcontainer.GetProcesses(handler.cgroupManager) }