From e249106ddfc506d99ad85674d72d7ddef1a3b0fb Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Sep 2021 10:21:01 +1000 Subject: [PATCH] [client] app: remove dead code --- client/CMakeLists.txt | 1 - client/src/app.c | 12 ------------ client/src/lg-renderer.c | 28 ---------------------------- 3 files changed, 41 deletions(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index b29aec99..8f823038 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -107,7 +107,6 @@ set(SOURCES src/app.c src/config.c src/keybind.c - src/lg-renderer.c src/ll.c src/util.c src/clipboard.c diff --git a/client/src/app.c b/client/src/app.c index d762ac8c..b694b484 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -226,18 +226,6 @@ void app_clipboardRequest(const LG_ClipboardReplyFn replyFn, void * opaque) spice_clipboard_request(g_state.cbType); } -void spiceClipboardNotice(const SpiceDataType type) -{ - if (!g_params.clipboardToLocal) - return; - - if (!g_state.cbAvailable) - return; - - g_state.cbType = type; - g_state.ds->cbNotice(cb_spiceTypeToLGType(type)); -} - static int mapSpiceToImGuiButton(uint32_t button) { switch (button) diff --git a/client/src/lg-renderer.c b/client/src/lg-renderer.c index 37243988..44784e86 100644 --- a/client/src/lg-renderer.c +++ b/client/src/lg-renderer.c @@ -20,31 +20,3 @@ #include #include - -bool LG_RendererValidatorBool(const char * value) -{ - if (!value) - return false; - - return - (strcasecmp(value, "1" ) == 0) || - (strcasecmp(value, "0" ) == 0) || - (strcasecmp(value, "true" ) == 0) || - (strcasecmp(value, "false" ) == 0) || - (strcasecmp(value, "yes" ) == 0) || - (strcasecmp(value, "no" ) == 0) || - (strcasecmp(value, "on" ) == 0) || - (strcasecmp(value, "off" ) == 0) || - (strcasecmp(value, "enable" ) == 0) || - (strcasecmp(value, "disable") == 0); -} - -bool LG_RendererValueToBool(const char * value) -{ - return - (strcasecmp(value, "1" ) == 0) || - (strcasecmp(value, "true" ) == 0) || - (strcasecmp(value, "yes" ) == 0) || - (strcasecmp(value, "on" ) == 0) || - (strcasecmp(value, "enable" ) == 0); -} \ No newline at end of file