mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
cleanup
This commit is contained in:
parent
cfcca8ec25
commit
969d0d0a71
3 changed files with 0 additions and 33 deletions
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue