mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +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 );
|
m_nMissing );
|
||||||
super.init( msg, 0 );
|
super.init( msg, 0 );
|
||||||
addButtonBar( R.layout.bt_buttons, BUTTONIDS );
|
addButtonBar( R.layout.bt_buttons, BUTTONIDS );
|
||||||
BTService.clearDevices( m_activity, null ); // will return names
|
|
||||||
|
|
||||||
scan();
|
scan();
|
||||||
}
|
}
|
||||||
|
@ -171,18 +170,6 @@ public class BTInviteDelegate extends InviteDelegate {
|
||||||
tryEnable();
|
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
|
// DlgDelegate.DlgClickNotify interface
|
||||||
@Override
|
@Override
|
||||||
public boolean onPosButton( Action action, Object[] params )
|
public boolean onPosButton( Action action, Object[] params )
|
||||||
|
|
|
@ -101,7 +101,6 @@ public class BTService extends XWService {
|
||||||
INVITE,
|
INVITE,
|
||||||
SEND,
|
SEND,
|
||||||
RADIO,
|
RADIO,
|
||||||
CLEAR,
|
|
||||||
REMOVE,
|
REMOVE,
|
||||||
NFCINVITE,
|
NFCINVITE,
|
||||||
PINGHOST,
|
PINGHOST,
|
||||||
|
@ -113,7 +112,6 @@ public class BTService extends XWService {
|
||||||
private static final String ADDR_KEY = "ADR";
|
private static final String ADDR_KEY = "ADR";
|
||||||
private static final String SCAN_TIMEOUT_KEY = "SCAN_TIMEOUT";
|
private static final String SCAN_TIMEOUT_KEY = "SCAN_TIMEOUT";
|
||||||
private static final String RADIO_KEY = "RDO";
|
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 GAMEID_KEY = "GMI";
|
||||||
private static final String GAMEDATA_KEY = "GD";
|
private static final String GAMEDATA_KEY = "GD";
|
||||||
|
@ -323,13 +321,6 @@ public class BTService extends XWService {
|
||||||
startService( context, intent );
|
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 )
|
public static void scan( Context context, int timeoutMS )
|
||||||
{
|
{
|
||||||
Intent intenet = getIntentTo( context, BTAction.SCAN )
|
Intent intenet = getIntentTo( context, BTAction.SCAN )
|
||||||
|
@ -499,9 +490,6 @@ public class BTService extends XWService {
|
||||||
setTimeoutTimer();
|
setTimeoutTimer();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CLEAR:
|
|
||||||
String[] btAddrs = intent.getStringArrayExtra( CLEAR_KEY );
|
|
||||||
break;
|
|
||||||
case SCAN:
|
case SCAN:
|
||||||
int timeout = intent.getIntExtra( SCAN_TIMEOUT_KEY, -1 );
|
int timeout = intent.getIntExtra( SCAN_TIMEOUT_KEY, -1 );
|
||||||
m_sender.add( new BTQueueElem( BTCmd.SCAN, timeout ) );
|
m_sender.add( new BTQueueElem( BTCmd.SCAN, timeout ) );
|
||||||
|
|
Loading…
Add table
Reference in a new issue