1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

get rid of unused code

git-svn-id: http://svn.opennebula.org/one/trunk@509 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Rubén S. Montero 2009-05-06 18:12:33 +00:00
parent 644d909c74
commit 5e800bc65e
4 changed files with 1 additions and 72 deletions

View File

@ -201,24 +201,6 @@ private:
return ObjectSQL::select_column(db,table,column,where,value);
}
/**
* Sets the value of a column in the pool for a given object
* @param db pointer to Database
* @param column to be selected
* @param where contidtion to select the column
* @param value of the column
* @return 0 on success
*/
int update_column(
SqliteDB * db,
const string& column,
const string& where,
const string& value)
{
return ObjectSQL::update_column(db,table,column,where,value);
}
/**
* Function to unmarshall a history object
* @param num the number of columns read from the DB

View File

@ -282,24 +282,7 @@ private:
* @return 0 on success.
*/
int update(SqliteDB * db);
/**
* Sets the value of a column in the pool for a given object
* @param db pointer to Database
* @param column to be selected
* @param where condition to select the column
* @param value of the column
* @return 0 on success
*/
int update_column(
SqliteDB * db,
const string& column,
const string& where,
const string& value)
{
return ObjectSQL::update_column(db,table,column,where,value);
}
/**
* Gets the value of a column in the pool for a given object
* @param db pointer to Database

View File

@ -51,22 +51,6 @@ protected:
const string& column,
const string& where,
string * value);
/**
* Sets the value of a column in the pool for a given object
* @param db pointer to Database
* @param table supporting the object
* @param column to be selected
* @param where contidtion to select the column
* @param value of the column
* @return 0 on success
*/
int update_column(
SqliteDB * db,
const string& table,
const string& column,
const string& where,
const string& value);
/**
* Reads the ObjectSQL (identified with its OID) from the database.

View File

@ -72,23 +72,3 @@ int ObjectSQL::select_column(
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
int ObjectSQL::update_column(
SqliteDB * db,
const string& table,
const string& column,
const string& where,
const string& value)
{
ostringstream os;
if ( where.empty() == true )
{
return -1;
}
os << "UPDATE " << table << " SET "<< column << " ='" << value
<< "' WHERE " << where;
return db->exec(os);
}