[gnome-control-center] wwan: Remove a never reached code



commit 8dc39c883171aba881e262d8a806b9f924c8d2ec
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Tue Feb 15 11:55:36 2022 +0530

    wwan: Remove a never reached code
    
    Since we return early, the code followed is never run.
    Also, the password for GSM APNs are not actually sensitive
    secrets.  So Remove the lines that are never reached.

 panels/wwan/cc-wwan-data.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/panels/wwan/cc-wwan-data.c b/panels/wwan/cc-wwan-data.c
index 3c0b2b493..c10148537 100644
--- a/panels/wwan/cc-wwan-data.c
+++ b/panels/wwan/cc-wwan-data.c
@@ -1377,9 +1377,6 @@ cc_wwan_data_apn_get_password (CcWwanDataApn *apn)
     }
 
   return password ? password : "";
-
-  if (apn->remote_connection)
-    nm_connection_clear_secrets (NM_CONNECTION (apn->remote_connection));
 }
 
 /**


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