From 3f002020be834652fc541cac8b35dc3a84576f5e Mon Sep 17 00:00:00 2001 From: chirst Date: Tue, 25 Jun 2024 21:25:49 -0600 Subject: [PATCH] remove todo --- pager/pager.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pager/pager.go b/pager/pager.go index 0c97ff5..88b41ba 100644 --- a/pager/pager.go +++ b/pager/pager.go @@ -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 {