Skip to content

Commit 0870bfe

Browse files
authored
fix: remove HeaderPage to avoid confusion (#511)
Signed-off-by: Alex Chi <[email protected]>
1 parent c659a48 commit 0870bfe

File tree

6 files changed

+0
-175
lines changed

6 files changed

+0
-175
lines changed

src/include/storage/page/b_plus_tree_page.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ class BPlusTreePage {
5656
void SetMaxSize(int max_size);
5757
auto GetMinSize() const -> int;
5858

59-
auto GetParentPageId() const -> page_id_t;
60-
void SetParentPageId(page_id_t parent_page_id);
61-
62-
auto GetPageId() const -> page_id_t;
63-
void SetPageId(page_id_t page_id);
64-
6559
private:
6660
// member variable, attributes that both internal and leaf page share
6761
IndexPageType page_type_ __attribute__((__unused__));

src/include/storage/page/header_page.h

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/storage/page/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ add_library(
77
hash_table_block_page.cpp
88
hash_table_bucket_page.cpp
99
hash_table_directory_page.cpp
10-
header_page.cpp
1110
page_guard.cpp
1211
table_page.cpp)
1312

src/storage/page/b_plus_tree_page.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,4 @@ void BPlusTreePage::SetMaxSize(int size) {}
4040
*/
4141
auto BPlusTreePage::GetMinSize() const -> int { return 0; }
4242

43-
/*
44-
* Helper methods to get/set parent page id
45-
*/
46-
auto BPlusTreePage::GetParentPageId() const -> page_id_t { return 0; }
47-
void BPlusTreePage::SetParentPageId(page_id_t parent_page_id) {}
48-
49-
/*
50-
* Helper methods to get/set self page id
51-
*/
52-
auto BPlusTreePage::GetPageId() const -> page_id_t { return 0; }
53-
void BPlusTreePage::SetPageId(page_id_t page_id) {}
54-
5543
} // namespace bustub

src/storage/page/header_page.cpp

Lines changed: 0 additions & 104 deletions
This file was deleted.

test/include/test_util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "common/exception.h"
2525
#include "common/logger.h"
2626
#include "common/util/string_util.h"
27-
#include "storage/page/header_page.h"
2827

2928
namespace bustub {
3029

0 commit comments

Comments
 (0)