about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-12 15:20:31 +0100
committerJames Booth <boothj5@gmail.com>2014-04-12 15:20:31 +0100
commit132976d85e5ef18c2ce3bbe97aa46050048270dc (patch)
treeac1d250d90fa4d4489a370afdaa2783cec97a35b /src
parent2fafcf001344f85965a0d1984860f092b7e19b7e (diff)
downloadprofani-tty-132976d85e5ef18c2ce3bbe97aa46050048270dc.tar.gz
Revert "Added ui_unknown_command"
This reverts commit 714ee2486353361898df7f5bb339e9be3f456830.
Diffstat (limited to 'src')
-rw-r--r--src/command/command.c2
-rw-r--r--src/ui/core.c7
-rw-r--r--src/ui/ui.h1
3 files changed, 1 insertions, 9 deletions
diff --git a/src/command/command.c b/src/command/command.c
index ea5db13b..4174f8a8 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -1367,7 +1367,7 @@ cmd_execute_default(const char * const inp)
             break;
 
         case WIN_CONSOLE:
-            ui_unknown_command(inp);
+            cons_show("Unknown command: %s", inp);
             break;
 
         case WIN_DUCK:
diff --git a/src/ui/core.c b/src/ui/core.c
index 3cb05fe8..569425f9 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -539,12 +539,6 @@ _ui_invalid_command_usage(const char * const usage, void (**setting_func)(void))
 }
 
 static void
-_ui_unknown_command(const char * const input)
-{
-    cons_show("Unknown command: %s", input);
-}
-
-static void
 _ui_disconnected(void)
 {
     wins_lost_connection();
@@ -1921,5 +1915,4 @@ ui_init_module(void)
     ui_input_nonblocking = _ui_input_nonblocking;
     ui_replace_input = _ui_replace_input;
     ui_invalid_command_usage = _ui_invalid_command_usage;
-    ui_unknown_command = _ui_unknown_command;
 }
diff --git a/src/ui/ui.h b/src/ui/ui.h
index fc689305..a528b390 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -160,7 +160,6 @@ void (*ui_input_nonblocking)(void);
 void (*ui_replace_input)(char *input, const char * const new_input, int *size);
 
 void (*ui_invalid_command_usage)(const char * const usage, void (**setting_func)(void));
-void (*ui_unknown_command)(const char * const input);
 
 // console window actions
 void (*cons_show)(const char * const msg, ...);