This commit is contained in:
Eric House 2013-10-28 07:50:43 -07:00
parent cfcca8ec25
commit 969d0d0a71
3 changed files with 0 additions and 33 deletions

View file

@ -702,7 +702,6 @@ public class DBUtils {
public static GameLock saveNewGame( Context context, byte[] bytes,
long groupID )
{
Assert.assertTrue( -1 != groupID ); // DON'T SHIP
GameLock lock = null;
initDB( context );
@ -1027,33 +1026,6 @@ public class DBUtils {
return result;
}
public static Set<Long> getAllGames( Context context )
{
HashSet<Long> result = null;
initDB( context );
String[] columns = { ROW_ID };
synchronized( s_dbHelper ) {
SQLiteDatabase db = s_dbHelper.getReadableDatabase();
Cursor cursor = db.query( DBHelper.TABLE_NAME_SUM, columns,
null, // selection
null, // args
null, // groupBy
null, // having
null
);
int index = cursor.getColumnIndex( ROW_ID );
result = new HashSet<Long>( cursor.getCount() );
for ( int ii = 0; cursor.moveToNext(); ++ii ) {
long rowid = cursor.getInt( index );
result.add( rowid );
}
cursor.close();
db.close();
}
return result;
}
public static long getGroupForGame( Context context, long rowid )
{
long result = ROWID_NOTFOUND;

View file

@ -189,10 +189,6 @@ public class GameListAdapter implements ExpandableListAdapter {
DBUtils.setGroupExpanded( m_context, groupid, false );
long[] rowids = DBUtils.getGroupGames( m_context, groupid );
// HashSet<Long> asSet = new HashSet<Long>(rowids.length);
// for ( long rowid : rowids ) {
// asSet.add( rowid );
// }
deselectGames( rowids );
}

View file

@ -40,7 +40,6 @@ import android.widget.AdapterView.OnItemLongClickListener;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
// import android.widget.ExpandableListView.ExpandableListContextMenuInfo;
import android.widget.ExpandableListView;
import android.widget.LinearLayout;
import android.widget.ListView;