aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-bearer.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-19 15:30:45 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:53 +0100
commit22846fc46f17a29638e086600f00b96f15701ba5 (patch)
tree0a0b4bb3c24a773a2792c93ab389615d3cfaaac0 /cli/mmcli-bearer.c
parent98d7edadb5b50663c4c26285e58459476896ad98 (diff)
cli: remove `--connect-with-number' option, no longer needed
Diffstat (limited to 'cli/mmcli-bearer.c')
-rw-r--r--cli/mmcli-bearer.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/cli/mmcli-bearer.c b/cli/mmcli-bearer.c
index c83396fc..14949c03 100644
--- a/cli/mmcli-bearer.c
+++ b/cli/mmcli-bearer.c
@@ -44,19 +44,14 @@ static Context *ctx;
/* Options */
static gboolean info_flag; /* set when no action found */
-static gchar *connect_with_number_str;
static gboolean connect_flag;
static gboolean disconnect_flag;
static GOptionEntry entries[] = {
{ "connect", 'c', 0, G_OPTION_ARG_NONE, &connect_flag,
- "Connect a given bearer using the default number, if any.",
+ "Connect a given bearer.",
NULL
},
- { "connect-with-number", 0, 0, G_OPTION_ARG_STRING, &connect_with_number_str,
- "Connect a given bearer using the specified number.",
- "[NUMBER]"
- },
{ "disconnect", 'x', 0, G_OPTION_ARG_NONE, &disconnect_flag,
"Disconnect a given bearer.",
NULL
@@ -89,8 +84,7 @@ mmcli_bearer_options_enabled (void)
if (checked)
return !!n_actions;
- n_actions = (!!connect_with_number_str +
- connect_flag +
+ n_actions = (connect_flag +
disconnect_flag);
if (n_actions == 0 && mmcli_get_common_bearer_string ()) {
@@ -302,10 +296,9 @@ get_bearer_ready (GObject *source,
g_assert_not_reached ();
/* Request to connect the bearer? */
- if (connect_flag || connect_with_number_str) {
+ if (connect_flag) {
g_debug ("Asynchronously connecting bearer...");
mm_bearer_connect (ctx->bearer,
- connect_flag ? "" : connect_with_number_str,
ctx->cancellable,
(GAsyncReadyCallback)connect_ready,
NULL);
@@ -362,12 +355,11 @@ mmcli_bearer_run_synchronous (GDBusConnection *connection)
}
/* Request to connect the bearer? */
- if (connect_flag || connect_with_number_str) {
+ if (connect_flag) {
gboolean result;
g_debug ("Synchronously connecting bearer...");
result = mm_bearer_connect_sync (ctx->bearer,
- connect_flag ? "" : connect_with_number_str,
NULL,
&error);
connect_process_reply (result, error);