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

[tor-commits] [orbot/master] Removed Unused Classes



commit 5d04d418378a919f6b57fe3bb9514d12cc429079
Author: lexi <dnsake@xxxxxxxxxxxxxx>
Date:   Fri Mar 29 15:45:26 2019 -0400

    Removed Unused Classes
---
 .../torproject/android/ui/ImageProgressView.java   | 78 ----------------------
 .../android/control/NullEventHandler.java          | 18 -----
 .../android/service/HiddenServiceManager.java      | 25 -------
 .../torproject/android/service/TorrcConfig.java    | 33 ---------
 .../android/control/NullEventHandler.java          | 18 -----
 5 files changed, 172 deletions(-)

diff --git a/app/src/main/java/org/torproject/android/ui/ImageProgressView.java b/app/src/main/java/org/torproject/android/ui/ImageProgressView.java
deleted file mode 100644
index 641c4446..00000000
--- a/app/src/main/java/org/torproject/android/ui/ImageProgressView.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.torproject.android.ui;
-
-import java.util.Random;
-
-import android.content.Context;
-import android.graphics.Canvas;
-import android.graphics.Color;
-import android.graphics.Paint;
-import android.graphics.RectF;
-import android.util.AttributeSet;
-import android.view.MotionEvent;
-import android.view.View;
-import android.widget.ImageView;
-
-public class ImageProgressView extends ImageView
-{
-
-	  private Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
-
-	  private float progress = 0f; // 0 to 1
-	  
-	  private RectF circle;
-	  
-	public ImageProgressView(Context context) {
-	 super(context);
-	 // TODO Auto-generated constructor stub
-	 init();
-	 
-	}
-
-	public ImageProgressView(Context context, AttributeSet attrs) {
-	 super(context, attrs);
-	 init();
-	}
-
-	public ImageProgressView(Context context, AttributeSet attrs, int defStyle) {
-	 super(context, attrs, defStyle);
-	 
-	 init();
-	}
-
-	private void init(){
-	 paint.setStyle(Paint.Style.STROKE);
-	 paint.setColor(Color.GREEN);
-	 paint.setAntiAlias(true);
-	 paint.setStrokeWidth(20);
-	 
-	}
-
-	@Override
-	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
-	   super.onMeasure(widthMeasureSpec, heightMeasureSpec);
-	   
-	   setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec),
-	   MeasureSpec.getSize(heightMeasureSpec));
-	 
-	}
-
-	@Override
-	protected void onDraw(Canvas canvas) {
-
-		super.onDraw(canvas);
-		
-		if (circle == null)
-		{
-		circle = new RectF(getWidth()/2,getHeight()/2+getHeight()/8, getWidth()/3,getHeight()/3);
-		}
-		
-		float sweepAngle = 360f * progress;
-		
-		canvas.drawArc(circle, 0, sweepAngle, true, paint);
-		
-	}
-	
-	
-
-	
-}
\ No newline at end of file
diff --git a/orbotservice/src/main/java/org/torproject/android/control/NullEventHandler.java b/orbotservice/src/main/java/org/torproject/android/control/NullEventHandler.java
deleted file mode 100644
index a2390e68..00000000
--- a/orbotservice/src/main/java/org/torproject/android/control/NullEventHandler.java
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2005 Nick Mathewson, Roger Dingledine
-// See LICENSE file for copying information
-package org.torproject.android.control;
-
-/**
- * Implementation of EventHandler that ignores all events.  Useful
- * when you only want to override one method.
- */
-public class NullEventHandler implements EventHandler {
-    public void circuitStatus(String status, String circID, String path) {}
-    public void streamStatus(String status, String streamID, String target) {}
-    public void orConnStatus(String status, String orName) {}
-    public void bandwidthUsed(long read, long written) {}
-    public void newDescriptors(java.util.List<String> orList) {}
-    public void message(String severity, String msg) {}
-    public void unrecognized(String type, String msg) {}
-}
-
diff --git a/orbotservice/src/main/java/org/torproject/android/service/HiddenServiceManager.java b/orbotservice/src/main/java/org/torproject/android/service/HiddenServiceManager.java
deleted file mode 100644
index 6b0d32dc..00000000
--- a/orbotservice/src/main/java/org/torproject/android/service/HiddenServiceManager.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package org.torproject.android.service;
-
-
-//list view with add/remove hidden services - user is prompted for port
-
-public class HiddenServiceManager {
-
-}
-/*
- * 
- * ## Once you have configured a hidden service, you can look at the
-## contents of the file ".../hidden_service/hostname" for the address
-## to tell people.
-##
-## HiddenServicePort x y:z says to redirect requests on port x to the
-## address y:z.
-
-#HiddenServiceDir @LOCALSTATEDIR@/lib/tor/hidden_service/
-#HiddenServicePort 80 127.0.0.1:80
-
-#HiddenServiceDir @LOCALSTATEDIR@/lib/tor/other_hidden_service/
-#HiddenServicePort 80 127.0.0.1:80
-#HiddenServicePort 22 127.0.0.1:22
-*/
-
diff --git a/orbotservice/src/main/java/org/torproject/android/service/TorrcConfig.java b/orbotservice/src/main/java/org/torproject/android/service/TorrcConfig.java
deleted file mode 100644
index 92bfb9b9..00000000
--- a/orbotservice/src/main/java/org/torproject/android/service/TorrcConfig.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.torproject.android.service;
-
-public class TorrcConfig {
-
-}
-
-/*
- * GeoIPFile
- */
-/*
-HTTPProxy host[:port]
-Tor will make all its directory requests through this host:port (or host:80 if port is not specified), rather than connecting directly to any directory servers.
-
-HTTPProxyAuthenticator username:password
-If defined, Tor will use this username:password for Basic HTTP proxy authentication, as in RFC 2617. This is currently the only form of HTTP proxy authentication that Tor supports; feel free to submit a patch if you want it to support others.
-
-HTTPSProxy host[:port]
-Tor will make all its OR (SSL) connections through this host:port (or host:443 if port is not specified), via HTTP CONNECT rather than connecting directly to servers. You may want to set FascistFirewall to restrict the set of ports you might try to connect to, if your HTTPS proxy only allows connecting to certain ports.
-
-HTTPSProxyAuthenticator username:password
-If defined, Tor will use this username:password for Basic HTTPS proxy authentication, as in RFC 2617. This is currently the only form of HTTPS proxy authentication that Tor supports; feel free to submit a patch if you want it to support others.
-
-Socks4Proxy host[:port]
-Tor will make all OR connections through the SOCKS 4 proxy at host:port (or host:1080 if port is not specified).
-
-Socks5Proxy host[:port]
-Tor will make all OR connections through the SOCKS 5 proxy at host:port (or host:1080 if port is not specified).
-
-Socks5ProxyUsername username
-
-Socks5ProxyPassword password
-If defined, authenticate to the SOCKS 5 server using username and password in accordance to RFC 1929. Both username and password must be between 1 and 255 characters.
-*/
\ No newline at end of file
diff --git a/orbotservice/src/test/java/org/torproject/android/control/NullEventHandler.java b/orbotservice/src/test/java/org/torproject/android/control/NullEventHandler.java
deleted file mode 100644
index a2390e68..00000000
--- a/orbotservice/src/test/java/org/torproject/android/control/NullEventHandler.java
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2005 Nick Mathewson, Roger Dingledine
-// See LICENSE file for copying information
-package org.torproject.android.control;
-
-/**
- * Implementation of EventHandler that ignores all events.  Useful
- * when you only want to override one method.
- */
-public class NullEventHandler implements EventHandler {
-    public void circuitStatus(String status, String circID, String path) {}
-    public void streamStatus(String status, String streamID, String target) {}
-    public void orConnStatus(String status, String orName) {}
-    public void bandwidthUsed(long read, long written) {}
-    public void newDescriptors(java.util.List<String> orList) {}
-    public void message(String severity, String msg) {}
-    public void unrecognized(String type, String msg) {}
-}
-



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