diff options
Diffstat (limited to 'riscos/help.c')
-rw-r--r-- | riscos/help.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/riscos/help.c b/riscos/help.c index 62bfd8a..5581649 100644 --- a/riscos/help.c +++ b/riscos/help.c @@ -47,7 +47,6 @@ */ static void ro_gui_interactive_help_broadcast(wimp_message *message, char *token); -static os_t help_time = 0; /** * Attempts to process an interactive help message request @@ -69,10 +68,6 @@ void ro_gui_interactive_help_request(wimp_message *message) { */ if ((!message) || (message->action != message_HELP_REQUEST)) return; - /* Remember the time of the request - */ - xos_read_monotonic_time(&help_time); - /* Initialise the basic token to a null byte */ message_token[0] = 0x00; @@ -220,38 +215,3 @@ static void ro_gui_interactive_help_broadcast(wimp_message *message, char *token wimp_send_message(wimp_USER_MESSAGE, (wimp_message *)reply, reply->sender); } - -/** - * Checks if interactive help is running - * - * \return non-zero if interactive help is available, or 0 if not available - */ -int ro_gui_interactive_help_available() { - taskmanager_task task; - int context = 0; - char *end; - os_t time; - - /* Check if we've received a help request in the last 0.5s to test for generic - interactive help applications - */ - xos_read_monotonic_time(&time); - if ((help_time + 50) > time) return true; - - /* Attempt to find the task 'Help' - */ - do { - if (xtaskmanager_enumerate_tasks(context, &task, sizeof(taskmanager_task), - &context, &end)) return 0; - - /* We can't just use strcmp due to string termination issues. - */ - if (strncmp(task.name, "Help", 4) == 0) { - if (task.name[4] < 32) return true; - } - } while (context >= 0); - - /* Return failure - */ - return 0; -} |