commit 7b8f908a8f8c83ae8fd3a8ec85a6a45a31438c10 Author: Hans-Christoph Steiner hans@eds.org Date: Fri Oct 25 11:57:15 2019 +0200
remove unused variables and methods from TorService --- .../main/java/org/torproject/android/service/TorService.java | 12 ------------ 1 file changed, 12 deletions(-)
diff --git a/orbotservice/src/main/java/org/torproject/android/service/TorService.java b/orbotservice/src/main/java/org/torproject/android/service/TorService.java index c493f80b..d23effd0 100644 --- a/orbotservice/src/main/java/org/torproject/android/service/TorService.java +++ b/orbotservice/src/main/java/org/torproject/android/service/TorService.java @@ -107,7 +107,6 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon private File fileControlPort;
private boolean mConnectivity = true; - private int mNetworkType = -1;
private NotificationManager mNotificationManager = null; private NotificationCompat.Builder mNotifyBuilder; @@ -133,8 +132,6 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon private static final Uri HS_CONTENT_URI = Uri.parse("content://org.torproject.android.ui.hiddenservices.providers/hs"); private static final Uri COOKIE_CONTENT_URI = Uri.parse("content://org.torproject.android.ui.hiddenservices.providers.cookie/cookie");
- private Handler mHandler; - public static final class HiddenService implements BaseColumns { public static final String NAME = "name"; public static final String PORT = "port"; @@ -505,8 +502,6 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
try { - mHandler = new Handler (); - appBinHome = getFilesDir();//getDir(TorServiceConstants.DIRECTORY_TOR_BINARY, Application.MODE_PRIVATE); if (!appBinHome.exists()) appBinHome.mkdirs(); @@ -1019,11 +1014,6 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
}
- protected TorControlConnection getControlConnection () - { - return conn; - } - private int initControlConnection (int maxTries, boolean isReconnect) throws Exception { int controlPort = -1; @@ -1499,8 +1489,6 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon // WE ARE NOT: DO SOMETHING ELSE newConnectivityState = false; } - - mNetworkType = newNetType;
if (newConnectivityState != mConnectivity) { mConnectivity = newConnectivityState;