diff --git a/code/debugconsole/console.cpp b/code/debugconsole/console.cpp index 0abe62f33b..c9547bb4d4 100644 --- a/code/debugconsole/console.cpp +++ b/code/debugconsole/console.cpp @@ -70,7 +70,6 @@ int dc_font = font::FONT1; SCP_string dc_title; -#define SCROLL_X_MAX (DBCOLS - DCOLS) #define SCROLL_Y_MAX (DBROWS - DROWS) // Commands and History @@ -117,11 +116,6 @@ void dc_draw_window(bool show_prompt); */ void dc_putc(char c); -/** - * @brief Predicate function used to sort debug_commands - */ -bool dcmd_less(debug_command *first, debug_command *second); - // ============================== IMPLEMENTATIONS ============================= void dc_do_command(SCP_string *cmd_str) { @@ -494,11 +488,6 @@ void dc_putc(char c) line_str->push_back(c); } -bool dcmd_less(debug_command *first, debug_command *second) -{ - return (strcmp(first->name, second->name) < 0); -} - void debug_console(void (*_func)(void)) { int done = 0; diff --git a/code/debugconsole/consolecmds.cpp b/code/debugconsole/consolecmds.cpp index 88b4726e4f..7a5761f0b0 100644 --- a/code/debugconsole/consolecmds.cpp +++ b/code/debugconsole/consolecmds.cpp @@ -28,10 +28,6 @@ debug_command *dc_commands[DC_MAX_COMMANDS]; int dc_commands_size = 0; // ========================= LOCALS ========================== -// dcf_shell commands -void dc_shell_font( void ); -void dc_shell_resize( void ); -void dc_shell_resize_buf( void ); // =================== class debug_command =================== debug_command::debug_command() @@ -155,6 +151,4 @@ DCF(help, "Displays the help list." ) dc_printf(" %s - %s\n", dc_commands[i]->name, dc_commands[i]->help); } -} - -debug_command dc_man("man", "Also displays the help list", dcf_help); +} \ No newline at end of file