DroidFish: Removed obsolete code.

This commit is contained in:
Peter Osterlund 2014-09-21 13:18:32 +00:00
parent 473b4ad55c
commit a1047dccea
2 changed files with 4 additions and 12 deletions

View File

@ -2154,14 +2154,11 @@ public class DroidFish extends Activity implements GUIInterface {
}
});
final int numFiles = fileNames.length;
boolean haveSf = EngineUtil.internalStockFishName() != null;
final int nEngines = numFiles + 1 + (haveSf ? 1 : 0);
final int nEngines = numFiles + 2;
final String[] items = new String[nEngines];
final String[] ids = new String[nEngines];
int idx = 0;
if (haveSf) {
ids[idx] = "stockfish"; items[idx] = getString(R.string.stockfish_engine); idx++;
}
ids[idx] = "stockfish"; items[idx] = getString(R.string.stockfish_engine); idx++;
ids[idx] = "cuckoochess"; items[idx] = getString(R.string.cuckoochess_engine); idx++;
String sep = File.separator;
String base = Environment.getExternalStorageDirectory() + sep + engineDir + sep;

View File

@ -33,14 +33,9 @@ public class EngineUtil {
/** Return number of physical processors, i.e. hyper-threading ignored. */
final static native int getNPhysicalProcessors();
private static final class CpuAbi {
static final String get() { return Build.CPU_ABI; }
}
/** Return file name of the internal stockfish executable,
* or null if the internal stockfish engine is not supported. */
/** Return file name of the internal stockfish executable. */
public static String internalStockFishName() {
String abi = CpuAbi.get();
String abi = Build.CPU_ABI;
if (!abi.equals("x86") &&
!abi.equals("armeabi-v7a") &&
!abi.equals("mips"))