diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2018-04-27 22:59:24 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-04-28 06:07:48 +0200 |
commit | ba862b166bd30de8c15593ed3b8dfd457eb39d36 (patch) | |
tree | 8f4f08ccec905f27062a4bb337a6c44185726e9a /app/src/main/java/com/wireguard/android/backend/GoBackend.java | |
parent | 592c5cbbd672a0eae33ce7e51e96215243e50dd8 (diff) |
Quick cleanup across the board
- Clean up imports
- Adjust method visibility
- Drop in NonNull annotations where needed
- Prevent potential NPEs from nulled getActivity calls
- Remove unused methods
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java/com/wireguard/android/backend/GoBackend.java')
-rw-r--r-- | app/src/main/java/com/wireguard/android/backend/GoBackend.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/src/main/java/com/wireguard/android/backend/GoBackend.java b/app/src/main/java/com/wireguard/android/backend/GoBackend.java index 1ebab857..8201b116 100644 --- a/app/src/main/java/com/wireguard/android/backend/GoBackend.java +++ b/app/src/main/java/com/wireguard/android/backend/GoBackend.java @@ -5,22 +5,18 @@ import android.content.Intent; import android.os.ParcelFileDescriptor; import android.support.v4.util.ArraySet; import android.util.Log; -import android.util.Pair; import com.wireguard.android.Application; import com.wireguard.android.model.Tunnel; import com.wireguard.android.model.Tunnel.State; import com.wireguard.android.model.Tunnel.Statistics; -import com.wireguard.android.model.TunnelManager; import com.wireguard.config.Config; import com.wireguard.config.IPCidr; import com.wireguard.config.Interface; import com.wireguard.config.Peer; import com.wireguard.crypto.KeyEncoding; -import java.net.Inet4Address; import java.net.InetAddress; -import java.net.InetSocketAddress; import java.util.Collections; import java.util.Formatter; import java.util.Set; @@ -45,7 +41,7 @@ public final class GoBackend implements Backend { this.context = context; } - public void startVpnService() { + private void startVpnService() { context.startService(new Intent(context, VpnService.class)); } |