1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +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

@ -6,7 +6,7 @@
#pragma once
#include <LibCore/EventReceiver.h>
#include <AK/RefCounted.h>
#include <LibSQL/Forward.h>
#include <LibSQL/Meta.h>
#include <LibSQL/Serializer.h>
@ -31,11 +31,9 @@ private:
Block::Index m_block_index;
};
class Index : public Core::EventReceiver {
C_OBJECT_ABSTRACT(Index);
class Index : public RefCounted<Index> {
public:
~Index() override = default;
virtual ~Index() = default;
NonnullRefPtr<TupleDescriptor> descriptor() const { return m_descriptor; }
[[nodiscard]] bool duplicates_allowed() const { return !m_unique; }