mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
LibSQL: Remove unused SQL::Row constructors/methods
This commit is contained in:
parent
4b70908dc4
commit
5336f23c7e
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/5336f23c7e Pull-request: https://github.com/SerenityOS/serenity/pull/16239 Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/linusg
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue