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

[tyndur-devel] [PATCH] shell: Unbenutzte Funktion entfernt



- shell: shell_check_command ist kaputt und unbenutzt. Weg damit.

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/modules/c/shell/shell.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/src/modules/c/shell/shell.c b/src/modules/c/shell/shell.c
index 8306800..1e13146 100644
--- a/src/modules/c/shell/shell.c
+++ b/src/modules/c/shell/shell.c
@@ -64,7 +64,6 @@ char    shell_command_buffer[COMMAND_BUFFER_SIZE];
 
 char    keyboard_read_char(void);
 void    shell_read_command(void);
-bool    shell_check_command(const char* cmd);
 int     shell_do_cmd(void);
 
 
@@ -179,20 +178,6 @@ void shell_read_command(void)
     free(cwd);
 }
 
-
-bool shell_check_command(const char* cmd)
-{
-    if(strncmp(shell_command_buffer, cmd, strlen(cmd)) == 0)
-    {
-        return true;
-    }
-    else
-    {
-        return false;
-    }
-}
-
-
 /**
  * Testet ob der Befehl am Anfang der uebergebenen Kommandozeile steht.
  *
-- 
1.6.0.2