1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

LibSQL: Remove Core::EventReceiver parent from SQL::Index

This relationship was only used to provide factory methods for the index
(and its BTree child).
This commit is contained in:
Timothy Flynn 2023-08-07 11:28:44 -04:00 committed by Tim Flynn
parent 1b40bf9783
commit 5ad78cab8d
5 changed files with 19 additions and 18 deletions

View file

@ -92,10 +92,9 @@ private:
};
class BTree : public Index {
C_OBJECT(BTree);
public:
~BTree() override = default;
static ErrorOr<NonnullRefPtr<BTree>> create(Serializer&, NonnullRefPtr<TupleDescriptor> const&, bool unique, Block::Index);
static ErrorOr<NonnullRefPtr<BTree>> create(Serializer&, NonnullRefPtr<TupleDescriptor> const&, Block::Index);
Block::Index root() const { return m_root ? m_root->block_index() : 0; }
bool insert(Key const&);
@ -110,7 +109,6 @@ public:
private:
BTree(Serializer&, NonnullRefPtr<TupleDescriptor> const&, bool unique, Block::Index);
BTree(Serializer&, NonnullRefPtr<TupleDescriptor> const&, Block::Index);
void initialize_root();
TreeNode* new_root();
OwnPtr<TreeNode> m_root { nullptr };