[client] app: remove dead code

This commit is contained in:
Geoffrey McRae 2021-09-11 10:21:01 +10:00
parent ab3738624f
commit e249106ddf
3 changed files with 0 additions and 41 deletions

View File

@ -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

View File

@ -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)

View File

@ -20,31 +20,3 @@
#include <stdbool.h>
#include <string.h>
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);
}