Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
29d4d7a1
Commit
29d4d7a1
authored
Jun 15, 2015
by
Tim Hockin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code
parent
85cc1494
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
bitmap.go
pkg/registry/service/allocator/bitmap.go
+0
-12
No files found.
pkg/registry/service/allocator/bitmap.go
View file @
29d4d7a1
...
@@ -79,18 +79,6 @@ func NewContiguousAllocationMap(max int, rangeSpec string) *AllocationBitmap {
...
@@ -79,18 +79,6 @@ func NewContiguousAllocationMap(max int, rangeSpec string) *AllocationBitmap {
return
&
a
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.
// Allocate attempts to reserve the provided item.
// Returns true if it was allocated, false if it was already in use
// Returns true if it was allocated, false if it was already in use
func
(
r
*
AllocationBitmap
)
Allocate
(
offset
int
)
(
bool
,
error
)
{
func
(
r
*
AllocationBitmap
)
Allocate
(
offset
int
)
(
bool
,
error
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment