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:
parent
1b40bf9783
commit
5ad78cab8d
5 changed files with 19 additions and 18 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue