From 6b71f211373e34de9b4cbb76fe89b160d18304aa Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 1 Apr 2013 08:58:06 +0100 Subject: Remove some dead code: - Conditions in m_httpd_stats which can never be true. - Commented out code in m_sqloper. - Unused macro in inspircd.h. --- src/modules/m_sqloper.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/modules/m_sqloper.cpp') diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp index 38bcb744a..7097cd8e2 100644 --- a/src/modules/m_sqloper.cpp +++ b/src/modules/m_sqloper.cpp @@ -57,21 +57,8 @@ class OpMeQuery : public SQLQuery SQLEntries row; while (res.GetRow(row)) { -#if 0 - parameterlist cols; - res.GetCols(cols); - - std::vector* items; - reference tag = ConfigTag::create("oper", "", 0, items); - for(unsigned int i=0; i < cols.size(); i++) - { - if (!row[i].nul) - items->insert(std::make_pair(cols[i], row[i])); - } -#else if (OperUser(user, row[0], row[1])) return; -#endif } ServerInstance->Logs->Log("m_sqloper",DEBUG, "SQLOPER: no matches for %s (checked %d rows)", uid.c_str(), res.Rows()); // nobody succeeded... fall back to OPER -- cgit v1.2.3