]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
remove unused (and unsafe) methods
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 17 Mar 2023 10:55:59 +0000 (11:55 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 17 Mar 2023 10:55:59 +0000 (11:55 +0100)
ext/lmdb-safe/lmdb-safe.hh

index 45feac1915c32585f65003888b2028c1fd464f53..f9ce08ab41f711f6252ed59f7ada3ac8695bf150 100644 (file)
@@ -212,27 +212,6 @@ struct MDBOutVal
   T getNoStripHeader() const;
 #endif
 
-#ifndef DNSDIST
-  template<class T>
-  T get_struct() const
-  {
-    T ret;
-
-    size_t offset = LMDBLS::LScheckHeaderAndGetSize(this, sizeof(T));
-
-    memcpy(&ret, reinterpret_cast<const char *>(d_mdbval.mv_data)+offset, sizeof(T));
-    return ret;
-  }
-
-  template<class T>
-  const T* get_struct_ptr() const
-  {
-    size_t offset = LMDBLS::LScheckHeaderAndGetSize(this, sizeof(T));
-
-    return reinterpret_cast<const T*>((char *)d_mdbval.mv_data+offset);
-  }
-#endif
-
   MDB_val d_mdbval;
 };