diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java index 62befe4f7..b948a4d5f 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBUtils.java @@ -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 getAllGames( Context context ) - { - HashSet 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( 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; diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java index 4efe62dd0..77241315e 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java @@ -189,10 +189,6 @@ public class GameListAdapter implements ExpandableListAdapter { DBUtils.setGroupExpanded( m_context, groupid, false ); long[] rowids = DBUtils.getGroupGames( m_context, groupid ); - // HashSet asSet = new HashSet(rowids.length); - // for ( long rowid : rowids ) { - // asSet.add( rowid ); - // } deselectGames( rowids ); } diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java index 89f69a578..c22cd4219 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java @@ -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;