From e55dd7ade6f9c490cd6739385c5e68fe2134f579 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 5 May 2012 16:43:17 -0700 Subject: [PATCH] Comment out unused db functions. --- database/database.cpp | 21 +++++++++++++++------ database/database.h | 7 +++---- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/database/database.cpp b/database/database.cpp index 0e88bc0704..66c2eb080f 100644 --- a/database/database.cpp +++ b/database/database.cpp @@ -100,50 +100,59 @@ bool Database::getColNumber(const char* colName,int* retIndex) return(false); } +#if 0 int Database::getSingleDBValueInt(const char* sql) { int ret; - if( executeSQL(sql) && startIterRows() && getNextRow()) + if( executeSQL(sql) && startIterRows() { ret=getInt(0); endIterRows(); - }else + } + else { //theUI->statusMsg("ERROR with database: %s",sql); ret=0; } return(ret); } +#endif +#if 0 float Database::getSingleDBValueFloat(const char* sql) { float ret; - if( executeSQL(sql) && startIterRows() && getNextRow()) + if(executeSQL(sql) && startIterRows() && getNextRow()) { ret=getFloat(0); endIterRows(); - }else + } + else { //theUI->statusMsg("ERROR with database: %s",sql); ret=0; } return(ret); } +#endif +#if 0 char* Database::getSingleDBValueStr(const char* sql,std::string& retStr) { char* ret; - if( executeSQL(sql) && startIterRows() && getNextRow()) + if(executeSQL(sql) && startIterRows()) { ret=getStr(0,retStr); endIterRows(); - }else + } + else { //theUI->statusMsg("ERROR with database: %s",sql); ret=0; } return(ret); } +#endif std::string Database::escape(const std::string strValue) { diff --git a/database/database.h b/database/database.h index 2dfcab6783..7e94693fbe 100644 --- a/database/database.h +++ b/database/database.h @@ -69,10 +69,9 @@ public: virtual int getBinary(int colIndex,unsigned char* buf,int maxSize)=0; virtual uint64 getBigInt(int colIndex)=0; - int getSingleDBValueInt(const char* sql); - float getSingleDBValueFloat(const char* sql); - char* getSingleDBValueStr(const char* sql, std::string& retStr); - + // int getSingleDBValueInt(const char* sql); + // float getSingleDBValueFloat(const char* sql); + // char* getSingleDBValueStr(const char* sql, std::string& retStr); };