mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 05:53:40 +00:00
[client] app: remove dead code
This commit is contained in:
parent
ab3738624f
commit
e249106ddf
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user