Remove unused imports, variables, declarations

This commit is contained in:
TwistedUmbrella 2018-04-19 16:09:07 -04:00
parent 8cd6953f7c
commit 3183b3185a
3 changed files with 2 additions and 11 deletions

View File

@ -30,9 +30,7 @@ import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

View File

@ -41,14 +41,13 @@ public class Config {
public static String readOutput(String command) {
try {
Process p = Runtime.getRuntime().exec(command);
InputStream is = null;
InputStream is;
if (p.waitFor() == 0) {
is = p.getInputStream();
} else {
is = p.getErrorStream();
}
BufferedReader br = new BufferedReader(new InputStreamReader(is),
2048);
BufferedReader br = new BufferedReader(new InputStreamReader(is),2048);
String line = br.readLine();
br.close();
return line;

View File

@ -31,15 +31,11 @@ import java.util.Vector;
public class OnScreenMenu {
private Activity mContext;
private SharedPreferences prefs;
private VmuLcd vmuLcd;
private Vector<PopupWindow> popups;
private File sdcard = Environment.getExternalStorageDirectory();
private String home_directory = sdcard + "/dc";
private int frames = Emulator.frameskip;
private boolean screen = Emulator.widescreen;
private boolean limit = Emulator.limitfps;
@ -57,8 +53,6 @@ public class OnScreenMenu {
}
popups = new Vector<PopupWindow>();
if (prefs != null) {
this.prefs = prefs;
home_directory = prefs.getString(Config.pref_home, home_directory);
masteraudio = !Emulator.nosound;
audio = masteraudio;
syncedrender = Emulator.syncedrender;