Pārlūkot izejas kodu

LibSQL: Remove unused SQL::Row constructors/methods

Timothy Flynn 2 gadi atpakaļ
vecāks
revīzija
5336f23c7e
2 mainītis faili ar 0 papildinājumiem un 31 dzēšanām
  1. 0 24
      Userland/Libraries/LibSQL/Row.cpp
  2. 0 7
      Userland/Libraries/LibSQL/Row.h

+ 0 - 24
Userland/Libraries/LibSQL/Row.cpp

@@ -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();
-}
-
 }

+ 0 - 7
Userland/Libraries/LibSQL/Row.h

@@ -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 };