From 24bddd1ff7da47337e63f7c30a9741525e1f52ca Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 18 Dec 2012 06:52:13 -0800 Subject: [PATCH] cleanup --- .../eehouse/android/xw4/GameListAdapter.java | 50 ------------------- 1 file changed, 50 deletions(-) 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 d3cbb73f9..0ea6d2ae4 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java @@ -27,17 +27,8 @@ import android.view.View; import android.view.ViewGroup; import android.widget.ExpandableListAdapter; import android.widget.ExpandableListView; -import android.widget.ImageButton; -import android.widget.ImageView; -import android.widget.LinearLayout; -import android.widget.ListAdapter; import android.widget.TextView; -import java.io.FileInputStream; -import java.text.DateFormat; -import java.util.Date; import java.util.HashMap; // class is not synchronized -import java.util.HashSet; -import java.util.Random; import java.util.Set; import junit.framework.Assert; @@ -72,13 +63,6 @@ public class GameListAdapter implements ExpandableListAdapter { m_fieldID = fieldToID( fieldName ); } - // public void inval( long rowid ) - // { - // synchronized( m_viewsCache ) { - // m_viewsCache.remove( rowid ); - // } - // } - public void expandGroups( ExpandableListView view ) { HashMap info = gameInfo(); @@ -91,27 +75,6 @@ public class GameListAdapter implements ExpandableListAdapter { } } - // public void setField( String field ) - // { - // int[] ids = { - // R.string.game_summary_field_empty - // ,R.string.game_summary_field_language - // ,R.string.game_summary_field_opponents - // ,R.string.game_summary_field_state - // }; - // int result = -1; - // for ( int id : ids ) { - // if ( m_context.getString( id ).equals( field ) ) { - // result = id; - // break; - // } - // } - // if ( m_fieldID != result ) { - // m_viewsCache.clear(); - // m_fieldID = result; - // } - // } - public long getRowIDFor( int group, int child ) { long rowid = DBUtils.ROWID_NOTFOUND; @@ -407,19 +370,6 @@ public class GameListAdapter implements ExpandableListAdapter { return result; } - // private int positionFor( long rowid ) - // { - // int position = -1; - // long[] rowids = DBUtils.gamesList( m_context ); - // for ( int ii = 0; ii < rowids.length; ++ii ) { - // if ( rowids[ii] == rowid ) { - // position = ii; - // break; - // } - // } - // return position; - // } - private HashMap gameInfo() { return DBUtils.getGroups( m_context );