cleanup: remove unnecessary file.

This commit is contained in:
Eric House 2016-03-14 22:01:55 -07:00
parent 0bc6387714
commit ab26e263ef
5 changed files with 3 additions and 46 deletions

View file

@ -260,12 +260,6 @@ public class FragActivity extends FragmentActivity
return s_this;
}
public static void launchGame( long rowid, boolean invited )
{
Bundle args = GameUtils.makeLaunchExtras( rowid, invited );
addFragment( new BoardFrag(), args );
}
public static void addFragment( Fragment fragment, Bundle bundle )
{
addFragment( fragment, bundle, null );

View file

@ -29,7 +29,7 @@ import org.eehouse.android.xw4.jni.CurGameInfo;
import junit.framework.Assert;
public class GamesListActivity extends XWActivity implements GamesListDelegator {
public class GamesListActivity extends XWActivity {
private GamesListDelegate m_dlgt;
@Override

View file

@ -592,7 +592,7 @@ public class GamesListDelegate extends ListDelegateBase
private Intent m_rematchIntent;
private Object[] m_newGameParams;
public GamesListDelegate( GamesListDelegator delegator, Bundle sis )
public GamesListDelegate( Delegator delegator, Bundle sis )
{
super( delegator, sis, R.layout.game_list, R.menu.games_list_menu );
m_activity = delegator.getActivity();

View file

@ -1,27 +0,0 @@
/* -*- compile-command: "find-and-ant.sh debug install"; -*- */
/*
* Copyright 2014 by Eric House (xwords@eehouse.org). All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package org.eehouse.android.xw4;
// import android.widget.ListAdapter;
// import android.widget.ListView;
public interface GamesListDelegator extends Delegator {
void launchGame( long rowID, boolean invited );
}

View file

@ -40,7 +40,7 @@ import junit.framework.Assert;
import org.eehouse.android.xw4.jni.CommonPrefs;
import org.eehouse.android.xw4.loc.LocUtils;
public class GamesListFrag extends XWFragment implements GamesListDelegator {
public class GamesListFrag extends XWFragment {
private GamesListDelegate m_dlgt;
@ -63,14 +63,4 @@ public class GamesListFrag extends XWFragment implements GamesListDelegator {
super.onActivityCreated( savedInstanceState );
setHasOptionsMenu( true );
}
//////////////////////////////////////////////////////////////////////
// ListDelegator interface
//////////////////////////////////////////////////////////////////////
public void launchGame( long rowid, boolean invited )
{
DbgUtils.logf( "GamesListFrag.launchGame(%d)", rowid );
FragActivity.launchGame( rowid, invited );
}
}