mirror of
https://github.com/RGBCube/serenity
synced 2025-06-30 10:22:13 +00:00
LibSQL: Remove unused SQL::Row constructors/methods
This commit is contained in:
parent
4b70908dc4
commit
5336f23c7e
2 changed files with 0 additions and 31 deletions
|
@ -6,21 +6,9 @@
|
||||||
|
|
||||||
#include <LibSQL/Meta.h>
|
#include <LibSQL/Meta.h>
|
||||||
#include <LibSQL/Row.h>
|
#include <LibSQL/Row.h>
|
||||||
#include <LibSQL/Serializer.h>
|
|
||||||
#include <LibSQL/Tuple.h>
|
|
||||||
|
|
||||||
namespace SQL {
|
namespace SQL {
|
||||||
|
|
||||||
Row::Row()
|
|
||||||
: Tuple()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Row::Row(TupleDescriptor const& descriptor)
|
|
||||||
: Tuple(descriptor)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Row::Row(RefPtr<TableDef> table, u32 pointer)
|
Row::Row(RefPtr<TableDef> table, u32 pointer)
|
||||||
: Tuple(table->to_tuple_descriptor())
|
: Tuple(table->to_tuple_descriptor())
|
||||||
, m_table(table)
|
, m_table(table)
|
||||||
|
@ -28,12 +16,6 @@ Row::Row(RefPtr<TableDef> table, u32 pointer)
|
||||||
set_pointer(pointer);
|
set_pointer(pointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
Row::Row(RefPtr<TableDef> table, u32 pointer, Serializer& serializer)
|
|
||||||
: Row(move(table), pointer)
|
|
||||||
{
|
|
||||||
Row::deserialize(serializer);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Row::deserialize(Serializer& serializer)
|
void Row::deserialize(Serializer& serializer)
|
||||||
{
|
{
|
||||||
Tuple::deserialize(serializer);
|
Tuple::deserialize(serializer);
|
||||||
|
@ -46,10 +28,4 @@ void Row::serialize(Serializer& serializer) const
|
||||||
serializer.serialize<u32>(next_pointer());
|
serializer.serialize<u32>(next_pointer());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Row::copy_from(Row const& other)
|
|
||||||
{
|
|
||||||
Tuple::copy_from(other);
|
|
||||||
m_next_pointer = other.next_pointer();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,11 +26,7 @@ namespace SQL {
|
||||||
*/
|
*/
|
||||||
class Row : public Tuple {
|
class Row : public Tuple {
|
||||||
public:
|
public:
|
||||||
Row();
|
|
||||||
explicit Row(TupleDescriptor const&);
|
|
||||||
explicit Row(RefPtr<TableDef>, u32 pointer = 0);
|
explicit Row(RefPtr<TableDef>, u32 pointer = 0);
|
||||||
Row(RefPtr<TableDef>, u32, Serializer&);
|
|
||||||
Row(Row const&) = default;
|
|
||||||
virtual ~Row() override = default;
|
virtual ~Row() override = default;
|
||||||
|
|
||||||
[[nodiscard]] u32 next_pointer() const { return m_next_pointer; }
|
[[nodiscard]] u32 next_pointer() const { return m_next_pointer; }
|
||||||
|
@ -41,9 +37,6 @@ public:
|
||||||
virtual void serialize(Serializer&) const override;
|
virtual void serialize(Serializer&) const override;
|
||||||
virtual void deserialize(Serializer&) override;
|
virtual void deserialize(Serializer&) override;
|
||||||
|
|
||||||
protected:
|
|
||||||
void copy_from(Row const&);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RefPtr<TableDef> m_table;
|
RefPtr<TableDef> m_table;
|
||||||
u32 m_next_pointer { 0 };
|
u32 m_next_pointer { 0 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue