Skip to content

Commit

Permalink
removed unused helper method from ResourceList
Browse files Browse the repository at this point in the history
  • Loading branch information
markturansky committed Feb 20, 2015
1 parent 4c87805 commit 1faa2fc
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1faa2fc

Please sign in to comment.