make finals static, remove unused local
found by findbugs
http://b/issue?id=1856725
http://b/issue?id=1856786
diff --git a/src/com/android/browser/GearsBaseDialog.java b/src/com/android/browser/GearsBaseDialog.java
index 638ba27..9a56cb8 100644
--- a/src/com/android/browser/GearsBaseDialog.java
+++ b/src/com/android/browser/GearsBaseDialog.java
@@ -56,7 +56,7 @@
protected String mDialogArguments;
private Bitmap mIcon;
- private final int MAX_ICON_SIZE = 64;
+ private static final int MAX_ICON_SIZE = 64;
protected int mChoosenIconSize;
// Dialog closing types
@@ -341,7 +341,6 @@
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoInput(true);
connection.connect();
- int length = connection.getContentLength();
InputStream is = connection.getInputStream();
Bitmap customIcon = BitmapFactory.decodeStream(is);
if (customIcon != null) {