LibSQL: Remove unused SQL::Row constructors/methods

This commit is contained in:
Timothy Flynn 2022-11-29 08:49:29 -05:00 committed by Linus Groh
parent 4b70908dc4
commit 5336f23c7e
Notes: sideshowbarker 2024-07-17 20:58:35 +09:00
2 changed files with 0 additions and 31 deletions

View file

@ -6,21 +6,9 @@
#include <LibSQL/Meta.h>
#include <LibSQL/Row.h>
#include <LibSQL/Serializer.h>
#include <LibSQL/Tuple.h>
namespace SQL {
Row::Row()
: Tuple()
{
}
Row::Row(TupleDescriptor const& descriptor)
: Tuple(descriptor)
{
}
Row::Row(RefPtr<TableDef> table, u32 pointer)
: Tuple(table->to_tuple_descriptor())
, m_table(table)
@ -28,12 +16,6 @@ Row::Row(RefPtr<TableDef> table, u32 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)
{
Tuple::deserialize(serializer);
@ -46,10 +28,4 @@ void Row::serialize(Serializer& serializer) const
serializer.serialize<u32>(next_pointer());
}
void Row::copy_from(Row const& other)
{
Tuple::copy_from(other);
m_next_pointer = other.next_pointer();
}
}

View file

@ -26,11 +26,7 @@ namespace SQL {
*/
class Row : public Tuple {
public:
Row();
explicit Row(TupleDescriptor const&);
explicit Row(RefPtr<TableDef>, u32 pointer = 0);
Row(RefPtr<TableDef>, u32, Serializer&);
Row(Row const&) = default;
virtual ~Row() override = default;
[[nodiscard]] u32 next_pointer() const { return m_next_pointer; }
@ -41,9 +37,6 @@ public:
virtual void serialize(Serializer&) const override;
virtual void deserialize(Serializer&) override;
protected:
void copy_from(Row const&);
private:
RefPtr<TableDef> m_table;
u32 m_next_pointer { 0 };