File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
pkg/kubelet/volumemanager/cache Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,6 @@ type ActualStateOfWorld interface {
145
145
// no longer referenced and may be globally unmounted and detached.
146
146
GetUnmountedVolumes () []AttachedVolume
147
147
148
- // GetPods generates and returns a map of pods in which map is indexed
149
- // with pod's unique name. This map can be used to determine which pod is currently
150
- // in actual state of world.
151
- GetPods () map [volumetypes.UniquePodName ]bool
152
-
153
148
// MarkFSResizeRequired marks each volume that is successfully attached and
154
149
// mounted for the specified pod as requiring file system resize (if the plugin for the
155
150
// volume indicates it requires file system resize).
@@ -749,21 +744,6 @@ func (asw *actualStateOfWorld) GetUnmountedVolumes() []AttachedVolume {
749
744
return unmountedVolumes
750
745
}
751
746
752
- func (asw * actualStateOfWorld ) GetPods () map [volumetypes.UniquePodName ]bool {
753
- asw .RLock ()
754
- defer asw .RUnlock ()
755
-
756
- podList := make (map [volumetypes.UniquePodName ]bool )
757
- for _ , volumeObj := range asw .attachedVolumes {
758
- for podName := range volumeObj .mountedPods {
759
- if ! podList [podName ] {
760
- podList [podName ] = true
761
- }
762
- }
763
- }
764
- return podList
765
- }
766
-
767
747
func (asw * actualStateOfWorld ) newAttachedVolume (
768
748
attachedVolume * attachedVolume ) AttachedVolume {
769
749
return AttachedVolume {
You can’t perform that action at this time.
0 commit comments