[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] orbotservice lint; unused imports



commit f2ea0b95282e001aa7ce3de3cb3d90dfea081c89
Author: bim <dsnake@xxxxxxxxxxxxxx>
Date:   Thu Sep 23 18:20:39 2021 -0400

    orbotservice lint; unused imports
---
 .../src/main/java/org/torproject/android/service/OrbotService.java   | 5 +----
 .../java/org/torproject/android/service/vpn/OrbotVpnManager.java     | 2 --
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java b/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
index 23b1ab9c..8af18be2 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
@@ -32,14 +32,11 @@ import android.net.VpnService;
 import android.os.BatteryManager;
 import android.os.Build;
 import android.os.Handler;
-import android.os.HandlerThread;
 import android.os.IBinder;
-import android.os.Looper;
 import android.provider.BaseColumns;
 import android.text.TextUtils;
 import android.util.Log;
 
-import net.freehaven.tor.control.RawEventListener;
 import net.freehaven.tor.control.TorControlCommands;
 import net.freehaven.tor.control.TorControlConnection;
 
@@ -174,7 +171,7 @@ public class OrbotService extends VpnService implements TorServiceConstants, Orb
             ByteArrayOutputStream baos = new ByteArrayOutputStream();
             e.printStackTrace(new PrintStream(baos));
 
-            sendCallbackLogMessage(msg + '\n' + new String(baos.toByteArray()));
+            sendCallbackLogMessage(msg + '\n' + baos.toString());
 
         } else
             sendCallbackLogMessage(msg);
diff --git a/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java b/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java
index d78789c6..c2633876 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java
@@ -42,12 +42,10 @@ import org.torproject.android.service.util.Prefs;
 
 import java.io.BufferedReader;
 import java.io.File;
-import java.io.FileOutputStream;
 import java.io.FileReader;
 import java.io.FileWriter;
 import java.io.IOException;
 import java.io.InputStreamReader;
-import java.io.PrintStream;
 import java.io.PrintWriter;
 import java.net.InetAddress;
 import java.util.ArrayList;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits