Skip to content

Commit

Permalink
remove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
chirst committed Jun 26, 2024
1 parent 17c3e55 commit 3f00202
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pager/pager.go
Original file line number Diff line number Diff line change
@@ -244,8 +244,6 @@ func (p *Page) SetParentPageNumber(pageNumber uint16) {
copy(p.content[PARENT_POINTER_OFFSET:PARENT_POINTER_OFFSET+PAGE_POINTER_SIZE], bpn)
}

// TODO consider just removing the boolean return from all these page pointers
// since 0 means the same thing
func (p *Page) GetLeftPageNumber() (hasLeft bool, pageNumber uint16) {
pn := binary.LittleEndian.Uint16(p.content[LEFT_POINTER_OFFSET : LEFT_POINTER_OFFSET+PAGE_POINTER_SIZE])
if pn == EMPTY_PARENT_PAGE_NUMBER {

0 comments on commit 3f00202

Please sign in to comment.