mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 03:21:20 +01:00
Remove unused imports
This commit is contained in:
parent
c4575a67d9
commit
ceea0cddea
|
@ -21,11 +21,9 @@ package org.petero.cuckoochess;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.app.Dialog;
|
import android.app.Dialog;
|
||||||
import android.content.DialogInterface;
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.SharedPreferences.Editor;
|
import android.content.SharedPreferences.Editor;
|
||||||
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
|
|
||||||
import android.graphics.Typeface;
|
import android.graphics.Typeface;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
|
@ -33,9 +31,6 @@ import android.text.ClipboardManager;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
|
||||||
import android.view.View.OnLongClickListener;
|
|
||||||
import android.view.View.OnTouchListener;
|
|
||||||
import android.widget.ScrollView;
|
import android.widget.ScrollView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
|
|
@ -18,18 +18,16 @@
|
||||||
|
|
||||||
package org.petero.droidfish.book;
|
package org.petero.droidfish.book;
|
||||||
|
|
||||||
|
import androidx.test.runner.AndroidJUnit4;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
import org.petero.droidfish.PGNOptions;
|
import org.petero.droidfish.PGNOptions;
|
||||||
import org.petero.droidfish.gamelogic.Game;
|
import org.petero.droidfish.gamelogic.Game;
|
||||||
import org.petero.droidfish.gamelogic.GameTree;
|
import org.petero.droidfish.gamelogic.GameTree;
|
||||||
import org.petero.droidfish.gamelogic.TimeControlData;
|
import org.petero.droidfish.gamelogic.TimeControlData;
|
||||||
|
|
||||||
import androidx.test.InstrumentationRegistry;
|
import static org.junit.Assert.assertEquals;
|
||||||
import androidx.test.runner.AndroidJUnit4;
|
|
||||||
|
|
||||||
import org.junit.Test;
|
|
||||||
import org.junit.runner.RunWith;
|
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
|
||||||
|
|
||||||
/** Test of EcoDb class. */
|
/** Test of EcoDb class. */
|
||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
|
|
|
@ -13,16 +13,15 @@
|
||||||
*/
|
*/
|
||||||
package com.kalab.chess.enginesupport;
|
package com.kalab.chess.enginesupport;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileNotFoundException;
|
|
||||||
import java.io.FileOutputStream;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
|
|
||||||
import android.content.ContentResolver;
|
import android.content.ContentResolver;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
|
||||||
public class ChessEngine {
|
public class ChessEngine {
|
||||||
|
|
||||||
private static final String TAG = ChessEngine.class.getSimpleName();
|
private static final String TAG = ChessEngine.class.getSimpleName();
|
||||||
|
|
|
@ -18,15 +18,13 @@
|
||||||
|
|
||||||
package org.petero.droidfish;
|
package org.petero.droidfish;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
|
||||||
import android.view.View.OnLongClickListener;
|
|
||||||
import android.widget.ImageButton;
|
import android.widget.ImageButton;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle all actions connected to a button.
|
* Handle all actions connected to a button.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -18,17 +18,16 @@
|
||||||
|
|
||||||
package org.petero.droidfish;
|
package org.petero.droidfish;
|
||||||
|
|
||||||
import java.util.Locale;
|
import android.content.Context;
|
||||||
|
import android.speech.tts.TextToSpeech;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
import org.petero.droidfish.gamelogic.Move;
|
import org.petero.droidfish.gamelogic.Move;
|
||||||
import org.petero.droidfish.gamelogic.Piece;
|
import org.petero.droidfish.gamelogic.Piece;
|
||||||
import org.petero.droidfish.gamelogic.Position;
|
import org.petero.droidfish.gamelogic.Position;
|
||||||
import org.petero.droidfish.gamelogic.TextIO;
|
import org.petero.droidfish.gamelogic.TextIO;
|
||||||
|
|
||||||
import android.content.Context;
|
import java.util.Locale;
|
||||||
import android.speech.tts.TextToSpeech;
|
|
||||||
import android.speech.tts.TextToSpeech.OnInitListener;
|
|
||||||
import android.widget.Toast;
|
|
||||||
|
|
||||||
/** Handles text to speech translation. */
|
/** Handles text to speech translation. */
|
||||||
public class Speech {
|
public class Speech {
|
||||||
|
|
|
@ -18,13 +18,12 @@
|
||||||
|
|
||||||
package org.petero.droidfish.activities;
|
package org.petero.droidfish.activities;
|
||||||
|
|
||||||
|
import android.util.Pair;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import android.app.Activity;
|
|
||||||
import android.util.Pair;
|
|
||||||
|
|
||||||
public class FENFile {
|
public class FENFile {
|
||||||
private final File fileName;
|
private final File fileName;
|
||||||
|
|
||||||
|
|
|
@ -18,17 +18,16 @@
|
||||||
|
|
||||||
package org.petero.droidfish.book;
|
package org.petero.droidfish.book;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileNotFoundException;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.RandomAccessFile;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import org.petero.droidfish.book.DroidBook.BookEntry;
|
import org.petero.droidfish.book.DroidBook.BookEntry;
|
||||||
import org.petero.droidfish.gamelogic.Move;
|
import org.petero.droidfish.gamelogic.Move;
|
||||||
import org.petero.droidfish.gamelogic.Piece;
|
import org.petero.droidfish.gamelogic.Piece;
|
||||||
import org.petero.droidfish.gamelogic.Position;
|
import org.petero.droidfish.gamelogic.Position;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.RandomAccessFile;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
class PolyglotBook implements IOpeningBook {
|
class PolyglotBook implements IOpeningBook {
|
||||||
private File bookFile;
|
private File bookFile;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
package tourguide.tourguide;
|
package tourguide.tourguide;
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by aaronliew on 8/7/15.
|
* Created by aaronliew on 8/7/15.
|
||||||
*/
|
*/
|
||||||
|
@ -204,4 +202,4 @@ public class Sequence {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,12 +25,8 @@ import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.io.LineNumberReader;
|
import java.io.LineNumberReader;
|
||||||
import java.security.SecureRandom;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
/** Implements an opening book. */
|
/** Implements an opening book. */
|
||||||
public class Book {
|
public class Book {
|
||||||
|
|
|
@ -20,13 +20,9 @@ package chess;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.FileOutputStream;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.io.OutputStream;
|
|
||||||
import java.io.RandomAccessFile;
|
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class FileUtil {
|
public class FileUtil {
|
||||||
|
|
|
@ -18,14 +18,10 @@
|
||||||
|
|
||||||
package chess;
|
package chess;
|
||||||
|
|
||||||
import java.io.DataInputStream;
|
|
||||||
import java.io.DataOutputStream;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
|
||||||
|
|
||||||
public class GameTree {
|
public class GameTree {
|
||||||
// Data from the seven tag roster (STR) part of the PGN standard
|
// Data from the seven tag roster (STR) part of the PGN standard
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
|
|
||||||
package chess;
|
package chess;
|
||||||
|
|
||||||
import java.util.Comparator;
|
|
||||||
|
|
||||||
public class Move {
|
public class Move {
|
||||||
/** From square, 0-63. */
|
/** From square, 0-63. */
|
||||||
public int from;
|
public int from;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user