]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Get rid of some dead code in the MySQL module.
authorPeter Powell <petpow@saberuk.com>
Wed, 13 Nov 2019 16:20:18 +0000 (16:20 +0000)
committerPeter Powell <petpow@saberuk.com>
Wed, 13 Nov 2019 16:20:34 +0000 (16:20 +0000)
src/modules/extra/m_mysql.cpp

index fe9bb4ceccb7f90c202bfd131ad41de8f98e14b9..3b9bde4de60fe8022ee3b30a125039e5404db934 100644 (file)
@@ -138,10 +138,6 @@ class DispatcherThread : public SocketThread
        void OnNotify() CXX11_OVERRIDE;
 };
 
-#if !defined(MYSQL_VERSION_ID) || MYSQL_VERSION_ID<32224
-#define mysql_field_count mysql_num_fields
-#endif
-
 /** Represents a mysql result set
  */
 class MySQLresult : public SQL::Result
@@ -372,11 +368,6 @@ class SQLConnection : public SQL::Provider
                return true;
        }
 
-       std::string GetError()
-       {
-               return mysql_error(connection);
-       }
-
        void Close()
        {
                mysql_close(connection);