summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/network/connection.pm7
-rw-r--r--lib/network/connection/cellular.pm5
-rw-r--r--lib/network/connection/wireless.pm7
3 files changed, 7 insertions, 12 deletions
diff --git a/lib/network/connection.pm b/lib/network/connection.pm
index 570935b..ca1eb28 100644
--- a/lib/network/connection.pm
+++ b/lib/network/connection.pm
@@ -119,6 +119,13 @@ sub get_selected_network {
exists $self->{networks}{$self->{network}} && $self->{networks}{$self->{network}};
}
+sub selected_network_is_configured {
+ my ($self) = @_;
+
+ my $network = $self->get_selected_network or return;
+ $self->network_is_configured($network);
+}
+
sub load_interface_settings {
my ($self) = @_;
require network::network;
diff --git a/lib/network/connection/cellular.pm b/lib/network/connection/cellular.pm
index 60a6000..8a4d0ee 100644
--- a/lib/network/connection/cellular.pm
+++ b/lib/network/connection/cellular.pm
@@ -30,11 +30,6 @@ sub network_is_configured {
defined($self->load_cellular_settings);
}
-sub selected_network_is_configured {
- my ($self) = @_;
- $self->network_is_configured($network);
-}
-
sub write_cellular_settings {
my ($self) = @_;
my $file = $self->get_cellular_settings_file or return;
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 14fefe6..d36527a 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -475,13 +475,6 @@ sub network_is_configured {
}
}
-sub selected_network_is_configured {
- my ($self) = @_;
-
- my $network = $self->get_selected_network or return;
- $self->network_is_configured($network);
-}
-
sub prepare_connection {
my ($self) = @_;
if ($self->{control}{roaming}) {