From 1faa2fcea70eadbf206e36741a4bc05eac57af55 Mon Sep 17 00:00:00 2001 From: markturansky Date: Fri, 20 Feb 2015 11:29:30 -0500 Subject: [PATCH] removed unused helper method from ResourceList --- pkg/api/types.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkg/api/types.go b/pkg/api/types.go index 162346c38ff..10600dece30 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -831,17 +831,6 @@ const ( // ResourceList is a set of (resource name, quantity) pairs. type ResourceList map[ResourceName]resource.Quantity -// Get is a convenience function, which returns a 0 quantity if the -// resource list is nil, empty, or lacks a value for the requested resource. -// Treat as read only! -func (rl ResourceList) Get(name ResourceName) *resource.Quantity { - if rl == nil { - return &resource.Quantity{} - } - q := rl[name] - return &q -} - // Node is a worker node in Kubernetenes // The name of the node according to etcd is in ObjectMeta.Name. type Node struct {