From 364acb6dcd99ec20002621555a030aa5ac70fece Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 1 Nov 2012 19:32:29 -0700 Subject: [PATCH] cleanup: remove some logging and unused string resources --- xwords4/android/XWords4/res/values/strings.xml | 18 ------------------ .../org/eehouse/android/xw4/BoardActivity.java | 8 +------- .../android/xw4/UpdateCheckReceiver.java | 1 - 3 files changed, 1 insertion(+), 26 deletions(-) diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml index c7a6ac89d..ed28c155a 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -1820,12 +1820,6 @@ Done with %s - - Pick a site - - Pick a site - - Tap word to search Look up %s at @@ -1896,8 +1890,6 @@ Rescan Remove checked - - Opponent devices Scanning for Crosswords on paired devices @@ -1961,8 +1953,6 @@ Launch Settings - Phone number required - SMS Game %X New game via SMS @@ -1977,15 +1967,11 @@ number[s] you want to invite to your new game, then tap \"Invite checked\". - Enter manually - (Not in contacts) The number %1$s for %2$s is not a \"mobile\" number. Import anyway? - Use anyway - Phone list is empty. Use the \"Import contact\" button to add people you want to invite, the + button to enter numbers directly. @@ -2121,10 +2107,6 @@ Reloading game with %1$s - - \u0020(Remember that phonies - will be discarded based on the host\'s wordlist.) - Game invitation pending Required wordlist missing Missing wordlist diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java index a5838db31..db252b137 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java @@ -1228,8 +1228,6 @@ public class BoardActivity extends XWActivity DeviceRole newRole = isServer? DeviceRole.SERVER_ISSERVER : DeviceRole.SERVER_ISCLIENT; if ( newRole != m_gi.serverRole ) { - DbgUtils.logf( "new role: %s; old role: %s", - newRole.toString(), m_gi.serverRole.toString() ); m_gi.serverRole = newRole; if ( !isServer ) { m_jniThread.handle( JNICmd.CMD_SWITCHCLIENT ); @@ -1368,7 +1366,6 @@ public class BoardActivity extends XWActivity @Override public void turnChanged( int newTurn ) { - DbgUtils.logf( "turnChanged(%d)", newTurn ); if ( 0 <= newTurn ) { post( new Runnable() { public void run() { @@ -1548,7 +1545,7 @@ public class BoardActivity extends XWActivity oldName ); if ( !oldSum.equals( newSum ) ) { // Same dict, different versions - msg = getString( R.string. inform_dict_diffversionf, + msg = getString( R.string.inform_dict_diffversionf, oldName ); } } else { @@ -1585,7 +1582,6 @@ public class BoardActivity extends XWActivity public boolean warnIllegalWord( String dict, String[] words, int turn, boolean turnLost ) { - DbgUtils.logf( "warnIllegalWord(dict=%s)", dict ); boolean accept = turnLost; StringBuffer sb = new StringBuffer(); @@ -1609,7 +1605,6 @@ public class BoardActivity extends XWActivity accept = 0 != waitBlockingDialog( QUERY_REQUEST_BLK, 0 ); } - DbgUtils.logf( "warnIllegalWord=>%b", accept ); return accept; } @@ -2039,7 +2034,6 @@ public class BoardActivity extends XWActivity if ( null == m_screenTimer ) { m_screenTimer = new Runnable() { public void run() { - DbgUtils.logf( "run() called for setKeepScreenOn()" ); if ( null != m_view ) { m_view.setKeepScreenOn( false ); } diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/UpdateCheckReceiver.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/UpdateCheckReceiver.java index 625760377..a87f77537 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/UpdateCheckReceiver.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/UpdateCheckReceiver.java @@ -29,7 +29,6 @@ import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.net.Uri; import android.os.SystemClock; -import android.widget.Toast; import java.util.ArrayList; import java.util.List;