mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
remove unused method
This commit is contained in:
parent
5e03e0cc75
commit
0aa2a03760
1 changed files with 0 additions and 21 deletions
|
@ -1152,27 +1152,6 @@ public class DBUtils {
|
|||
}
|
||||
}
|
||||
|
||||
public static int countVisibleGames( Context context )
|
||||
{
|
||||
int result = 0;
|
||||
String[] columns = { ROW_ID };
|
||||
|
||||
String query = "SELECT %s FROM %s WHERE %s IN (SELECT %s FROM %s WHERE NOT %s = 0)";
|
||||
query = String.format( query, ROW_ID, DBHelper.TABLE_NAME_SUM, DBHelper.GROUPID,
|
||||
ROW_ID, DBHelper.TABLE_NAME_GROUPS, DBHelper.EXPANDED );
|
||||
// DbgUtils.logf( "countVisibleGames: query=%s", query );
|
||||
|
||||
initDB( context );
|
||||
synchronized( s_dbHelper ) {
|
||||
SQLiteDatabase db = s_dbHelper.getReadableDatabase();
|
||||
Cursor cursor = db.rawQuery( query, null );
|
||||
result = cursor.getCount();
|
||||
cursor.close();
|
||||
db.close();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static int countGames( Context context )
|
||||
{
|
||||
int result = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue