From 96e1bb655651ad7e0d5bd7841ce5b4642e9458dc Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 17 Aug 2020 21:59:43 -0400 Subject: Open Plugin cleanup cleanup a few unneded functions Change-Id: I7207fd1380f92bb26ab8365a4bbef6104975acbe --- apps/open_plugin.c | 27 +-------------------------- apps/open_plugin.h | 1 - 2 files changed, 1 insertion(+), 27 deletions(-) (limited to 'apps') diff --git a/apps/open_plugin.c b/apps/open_plugin.c index 0fb20403bc..5bca829708 100644 --- a/apps/open_plugin.c +++ b/apps/open_plugin.c @@ -24,7 +24,6 @@ #include "plugin.h" #include "open_plugin.h" #include "pathfuncs.h" -#include "keyboard.h" #include "splash.h" #include "lang.h" @@ -32,14 +31,6 @@ struct open_plugin_entry_t open_plugin_entry; static const int op_entry_sz = sizeof(struct open_plugin_entry_t); -static void get_param(void) -{ - char tmp_buf[OPEN_PLUGIN_BUFSZ+1]; - strlcpy(tmp_buf, open_plugin_entry.param, OPEN_PLUGIN_BUFSZ); - if (kbd_input(tmp_buf, OPEN_PLUGIN_BUFSZ, NULL)) - strlcpy(open_plugin_entry.param, tmp_buf, OPEN_PLUGIN_BUFSZ); -} - uint32_t open_plugin_add_path(const char *key, const char *plugin, const char *parameter) { int len; @@ -72,15 +63,7 @@ uint32_t open_plugin_add_path(const char *key, const char *plugin, const char *p strlcpy(open_plugin_entry.path, plugin, OPEN_PLUGIN_BUFSZ); if(parameter) - { - if (parameter[0] == '\0' && - yesno_pop(ID2P(LANG_PARAMETER))) - { - get_param(); - } - else - strlcpy(open_plugin_entry.param, parameter, OPEN_PLUGIN_BUFSZ); - } + strlcpy(open_plugin_entry.param, parameter, OPEN_PLUGIN_BUFSZ); write(fd, &open_plugin_entry, op_entry_sz); } @@ -131,15 +114,7 @@ void open_plugin_browse(const char *key) browse.bufsize = OPEN_PLUGIN_BUFSZ; if (rockbox_browse(&browse) == GO_TO_PREVIOUS) - { open_plugin_add_path(key, tmp_buf, NULL); - } -} - -void open_plugin_remove(const char *key) -{ - (void)key; - open_plugin_add_path(key, NULL, NULL); } static int open_plugin_hash_get_entry(uint32_t hash, struct open_plugin_entry_t *entry) diff --git a/apps/open_plugin.h b/apps/open_plugin.h index 2d8a527073..9f20d7ffda 100644 --- a/apps/open_plugin.h +++ b/apps/open_plugin.h @@ -58,7 +58,6 @@ extern struct open_plugin_entry_t open_plugin_entry; uint32_t open_plugin_add_path(const char *key, const char *plugin, const char *parameter); int open_plugin_get_entry(const char *key, struct open_plugin_entry_t *entry); void open_plugin_browse(const char *key); -void open_plugin_remove(const char *key); int open_plugin_run(const char *key); #endif -- cgit v1.2.3