mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
remove unreachable code
This commit is contained in:
parent
d868fef0d2
commit
3a0e67c7b3
2 changed files with 0 additions and 25 deletions
|
@ -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<InviterItem> checked = getChecked();
|
||||
String[] devs = new String[checked.size()];
|
||||
Iterator<InviterItem> 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 )
|
||||
|
|
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue