From e0b5697fa087a3f1ca1f8fd87bfa6a3405890512 Mon Sep 17 00:00:00 2001 From: vikrama Date: Sun, 18 Sep 2011 03:50:16 +0000 Subject: [PATCH] Remove an unused variable from the WifiReceiver class. git-svn-id: https://zxing.googlecode.com/svn/trunk@1918 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- .../com/google/zxing/client/android/wifi/WifiActivity.java | 2 +- .../com/google/zxing/client/android/wifi/WifiReceiver.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/android/src/com/google/zxing/client/android/wifi/WifiActivity.java b/android/src/com/google/zxing/client/android/wifi/WifiActivity.java index 0654d8680..3b246a8ff 100644 --- a/android/src/com/google/zxing/client/android/wifi/WifiActivity.java +++ b/android/src/com/google/zxing/client/android/wifi/WifiActivity.java @@ -227,7 +227,7 @@ public final class WifiActivity extends Activity { wifiManager.setWifiEnabled(true); // So we know when the network changes - wifiReceiver = new WifiReceiver(wifiManager, this, statusView, ssid); + wifiReceiver = new WifiReceiver(wifiManager, this, statusView); // The order matters! mWifiStateFilter = new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION); diff --git a/android/src/com/google/zxing/client/android/wifi/WifiReceiver.java b/android/src/com/google/zxing/client/android/wifi/WifiReceiver.java index 5e095ecf6..71bdbacb7 100644 --- a/android/src/com/google/zxing/client/android/wifi/WifiReceiver.java +++ b/android/src/com/google/zxing/client/android/wifi/WifiReceiver.java @@ -39,9 +39,7 @@ final class WifiReceiver extends BroadcastReceiver { private final WifiActivity parent; private final TextView statusView; - // FIXME: Why is ssid ignored here? - WifiReceiver(WifiManager wifiManager, WifiActivity wifiActivity, TextView statusView, - String ssid) { + WifiReceiver(WifiManager wifiManager, WifiActivity wifiActivity, TextView statusView) { this.parent = wifiActivity; this.statusView = statusView; this.mWifiManager = wifiManager;