Bug 665532 - Fix unused variable warnings in nsWifiMonitor.cpp by removing now unneeded LOG()s; r=dougt
authorEd Morley <bmo@edmorley.co.uk>
Sun, 14 Aug 2011 19:04:06 +0200
changeset 75270 96fa4289361ec9b34bafc6680903866dddbcc9cd
parent 75269 2de3cff973b2e4563bbf2d0abc4ee81e6eda587c
child 75271 145e0f391912973fe4ffe6974f22680fc810d51d
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersdougt
bugs665532
milestone8.0a1
Bug 665532 - Fix unused variable warnings in nsWifiMonitor.cpp by removing now unneeded LOG()s; r=dougt
netwerk/wifi/nsWifiMonitor.cpp
--- a/netwerk/wifi/nsWifiMonitor.cpp
+++ b/netwerk/wifi/nsWifiMonitor.cpp
@@ -165,18 +165,17 @@ class nsPassErrorToWifiListeners : publi
 
 NS_IMPL_THREADSAFE_ISUPPORTS1(nsPassErrorToWifiListeners,
                               nsIRunnable)
 
 NS_IMETHODIMP nsPassErrorToWifiListeners::Run()
 {
   LOG(("About to send error to the wifi listeners\n"));
   for (PRInt32 i = 0; i < mListeners->Count(); i++) {
-    nsresult rv = (*mListeners)[i]->OnError(mResult);
-    LOG( ("... sent %d\n", rv));
+    (*mListeners)[i]->OnError(mResult);
   }
   return NS_OK;
 }
 
 NS_IMETHODIMP nsWifiMonitor::Run()
 {
   LOG(("@@@@@ wifi monitor run called\n"));
 
@@ -224,19 +223,17 @@ class nsCallWifiListeners : public nsIRu
 
 NS_IMPL_THREADSAFE_ISUPPORTS1(nsCallWifiListeners,
                               nsIRunnable)
 
 NS_IMETHODIMP nsCallWifiListeners::Run()
 {
   LOG(("About to send data to the wifi listeners\n"));
   for (PRInt32 i = 0; i < mListeners->Count(); i++) {
-    nsresult rv = (*mListeners)[i]->OnChange(mAccessPoints->Elements(),
-                                             mAccessPoints->Length());
-    LOG( ("... sent %d\n", rv));
+    (*mListeners)[i]->OnChange(mAccessPoints->Elements(), mAccessPoints->Length());
   }
   return NS_OK;
 }
 
 nsresult
 nsWifiMonitor::CallWifiListeners(const nsCOMArray<nsWifiAccessPoint> &aAccessPoints,
                                  PRBool aAccessPointsChanged)
 {