diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTInviteDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTInviteDelegate.java index 31c712cdb..a5b3e989d 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTInviteDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTInviteDelegate.java @@ -73,7 +73,6 @@ public class BTInviteDelegate extends InviteDelegate { m_nMissing ); super.init( msg, 0 ); addButtonBar( R.layout.bt_buttons, BUTTONIDS ); - BTService.clearDevices( m_activity, null ); // will return names scan(); } @@ -171,18 +170,6 @@ public class BTInviteDelegate extends InviteDelegate { tryEnable(); } - private void removeSelected() - { - Set checked = getChecked(); - String[] devs = new String[checked.size()]; - Iterator iter = checked.iterator(); - for ( int ii = 0; iter.hasNext(); ++ii ) { - TwoStringPair pair = (TwoStringPair)iter.next(); - devs[ii] = pair.str1; - } - BTService.clearDevices( m_activity, devs ); - } - // DlgDelegate.DlgClickNotify interface @Override public boolean onPosButton( Action action, Object[] params ) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTService.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTService.java index 44f256554..b7044d97f 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTService.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BTService.java @@ -101,7 +101,6 @@ public class BTService extends XWService { INVITE, SEND, RADIO, - CLEAR, REMOVE, NFCINVITE, PINGHOST, @@ -113,7 +112,6 @@ public class BTService extends XWService { private static final String ADDR_KEY = "ADR"; private static final String SCAN_TIMEOUT_KEY = "SCAN_TIMEOUT"; private static final String RADIO_KEY = "RDO"; - private static final String CLEAR_KEY = "CLR"; private static final String GAMEID_KEY = "GMI"; private static final String GAMEDATA_KEY = "GD"; @@ -323,13 +321,6 @@ public class BTService extends XWService { startService( context, intent ); } - public static void clearDevices( Context context, String[] btAddrs ) - { - Intent intent = getIntentTo( context, BTAction.CLEAR ) - .putExtra( CLEAR_KEY, btAddrs ); - startService( context, intent ); - } - public static void scan( Context context, int timeoutMS ) { Intent intenet = getIntentTo( context, BTAction.SCAN ) @@ -499,9 +490,6 @@ public class BTService extends XWService { setTimeoutTimer(); break; - case CLEAR: - String[] btAddrs = intent.getStringArrayExtra( CLEAR_KEY ); - break; case SCAN: int timeout = intent.getIntExtra( SCAN_TIMEOUT_KEY, -1 ); m_sender.add( new BTQueueElem( BTCmd.SCAN, timeout ) );