From 29d4d7a16d7a847aa96d52c2771033d69839c5f9 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Mon, 15 Jun 2015 14:40:36 -0700 Subject: [PATCH] Remove dead code --- pkg/registry/service/allocator/bitmap.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/registry/service/allocator/bitmap.go b/pkg/registry/service/allocator/bitmap.go index 3c647ab431d..e90f396a602 100644 --- a/pkg/registry/service/allocator/bitmap.go +++ b/pkg/registry/service/allocator/bitmap.go @@ -79,18 +79,6 @@ func NewContiguousAllocationMap(max int, rangeSpec string) *AllocationBitmap { return &a } -// NewRandomAllocationInterface creates an allocation bitmap satisfying Interface using the -// random scan strategy. -func NewRandomAllocationInterface(max int, rangeSpec string) Interface { - return NewAllocationMap(max, rangeSpec) -} - -// NewContiguousAllocationInterface creates an allocation bitmap satisfying Interface using the -// contiguous scan strategy. -func NewContiguousAllocationInterface(max int, rangeSpec string) Interface { - return NewContiguousAllocationMap(max, rangeSpec) -} - // Allocate attempts to reserve the provided item. // Returns true if it was allocated, false if it was already in use func (r *AllocationBitmap) Allocate(offset int) (bool, error) {