home · contact · privacy
Removed indirection in control.c and therefore unused is_command_id_shortdsc().
[plomrogue] / src / client / command_db.c
index 4835392318ae2e161b54344fdaa6a32ecd64cb00..846f87ff579483e55ff355d6fb78213f0c57b644 100644 (file)
@@ -29,25 +29,6 @@ static void copy_tokenized_string(char ** ch_ptr, char * delim)
 
 
 
-extern uint8_t is_command_id_shortdsc(uint8_t id, char * shortdsc)
-{
-    struct Command * cmd_ptr = world.cmd_db.cmds;
-    while (1)
-    {
-        if (id == cmd_ptr->id)
-        {
-            if (strcmp(shortdsc, cmd_ptr->dsc_short))
-            {
-                return 0;
-            }
-            return 1;
-        }
-        cmd_ptr = &cmd_ptr[1];
-    }
-}
-
-
-
 extern uint8_t get_command_id(char * dsc_short)
 {
     struct Command * cmd_ptr = world.cmd_db.cmds;