diff --git a/headers/os/drivers/KernelExport.h b/headers/os/drivers/KernelExport.h index d9ba9d1028..ca43571049 100644 --- a/headers/os/drivers/KernelExport.h +++ b/headers/os/drivers/KernelExport.h @@ -174,16 +174,10 @@ extern void panic(const char *format, ...) _PRINTFLIKE(1, 2); extern void kernel_debugger(const char *message); extern uint64 parse_expression(const char *string); -#if __GNUC__ > 2 extern int add_debugger_command(const char *name, debugger_command_hook hook, const char *help); extern int remove_debugger_command(const char *name, debugger_command_hook hook); -#else -extern int add_debugger_command(char *name, debugger_command_hook hook, char *help); -extern int remove_debugger_command(char *name, - debugger_command_hook hook); -#endif /* Miscellaneous */ extern void spin(bigtime_t microseconds); diff --git a/src/system/kernel/debug/debug_commands.cpp b/src/system/kernel/debug/debug_commands.cpp index aeb9abc3c1..66da7a2109 100644 --- a/src/system/kernel/debug/debug_commands.cpp +++ b/src/system/kernel/debug/debug_commands.cpp @@ -499,23 +499,15 @@ print_debugger_command_usage(const char* commandName) // #pragma mark - public API int -#if __GNUC__ > 2 add_debugger_command(const char *name, int (*func)(int, char **), const char *desc) -#else -add_debugger_command(char *name, int (*func)(int, char **), char *desc) -#endif { return add_debugger_command_etc(name, func, desc, NULL, 0); } int -#if __GNUC__ > 2 remove_debugger_command(const char * name, int (*func)(int, char **)) -#else -remove_debugger_command(char * name, int (*func)(int, char **)) -#endif { struct debugger_command *cmd = sCommands; struct debugger_command *prev = NULL;