summaryrefslogtreecommitdiff
path: root/client/commands.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-02-20 13:53:36 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-02-21 16:23:16 +0200
commit499d0573f96511e72d1d217402d42b924de05e78 (patch)
treea1b7d72a5892fe86a5ac4e88d817d5904eaf6438 /client/commands.c
parent286c9bf68b3fac70cb88424132a7f8350c5c0170 (diff)
downloadconnman-499d0573f96511e72d1d217402d42b924de05e78.tar.gz
connman-499d0573f96511e72d1d217402d42b924de05e78.tar.bz2
connman-499d0573f96511e72d1d217402d42b924de05e78.zip
client: Remove the now obsolete command parsing functions
Diffstat (limited to 'client/commands.c')
-rw-r--r--client/commands.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/client/commands.c b/client/commands.c
index d38b8581..8d0a6a99 100644
--- a/client/commands.c
+++ b/client/commands.c
@@ -548,34 +548,9 @@ int commands(DBusConnection *connection, char *argv[], int argc)
if (result < 0)
printf("Error '%s': %s\n", argv[0],
strerror(-result));
- return 0;
+ return result;
}
}
return -1;
}
-
-int commands_no_options(DBusConnection *connection, char *argv[], int argc)
-{
- DBusMessage *message = NULL;
- int error = 0;
-
- if (strcmp(argv[0], "--help") == 0 || strcmp(argv[0], "help") == 0 ||
- strcmp(argv[0], "h") == 0) {
- printf("Usage: connmanctl [[command] [args]]\n");
- cmd_help(NULL, 0, NULL);
- printf("\nNote: arguments and output are considered "
- "EXPERIMENTAL for now.\n\n");
- } else
- return -1;
-
- if (message != NULL)
- dbus_message_unref(message);
-
- return error;
-}
-
-int commands_options(DBusConnection *connection, char *argv[], int argc)
-{
- return 0;
-}