diff --git a/client/common/client_cliprdr_file.c b/client/common/client_cliprdr_file.c index 3e108cd73..e8a9125de 100644 --- a/client/common/client_cliprdr_file.c +++ b/client/common/client_cliprdr_file.c @@ -1577,26 +1577,6 @@ static UINT cliprdr_file_context_server_file_contents_request( return CHANNEL_RC_OK; } -static BOOL xf_cliprdr_clipboard_is_valid_unix_filename(LPCWSTR filename) -{ - LPCWSTR c = NULL; - - if (!filename) - return FALSE; - - if (filename[0] == L'\0') - return FALSE; - - /* Reserved characters */ - for (c = filename; *c; ++c) - { - if (*c == L'/') - return FALSE; - } - - return TRUE; -} - BOOL cliprdr_file_context_init(CliprdrFileContext* file, CliprdrClientContext* cliprdr) { WINPR_ASSERT(file); diff --git a/client/common/cmdline.c b/client/common/cmdline.c index 56bf42031..f87a2c214 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -233,16 +233,6 @@ fail: return FALSE; } -static BOOL copy_value(const char* value, char** dst) -{ - if (!dst || !value) - return FALSE; - - free(*dst); - (*dst) = _strdup(value); - return (*dst) != NULL; -} - static BOOL value_to_int(const char* value, LONGLONG* result, LONGLONG min, LONGLONG max) { long long rc = 0; diff --git a/libfreerdp/core/redirection.c b/libfreerdp/core/redirection.c index 816177266..8538a9056 100644 --- a/libfreerdp/core/redirection.c +++ b/libfreerdp/core/redirection.c @@ -195,17 +195,6 @@ static BOOL rdp_redirection_read_unicode_string(wStream* s, char** str, size_t m return TRUE; } -static BOOL replace_char(char* utf8, size_t length, char what, char with) -{ - for (size_t x = 0; x < length; x++) - { - char* cur = &utf8[x]; - if (*cur == what) - *cur = with; - } - return TRUE; -} - static BOOL rdp_redirection_write_data(wStream* s, size_t length, const void* data) { WINPR_ASSERT(data || (length == 0)); diff --git a/winpr/libwinpr/utils/wlog/Layout.c b/winpr/libwinpr/utils/wlog/Layout.c index 60a33da28..188c15b99 100644 --- a/winpr/libwinpr/utils/wlog/Layout.c +++ b/winpr/libwinpr/utils/wlog/Layout.c @@ -131,21 +131,6 @@ static int opt_compare_fn(const void* a, const void* b) return strncmp(what, opt->fmt, opt->fmtlen); } -static BOOL has_format_arg(const char* str, size_t len) -{ - if (!str || (len == 0)) - return FALSE; - - for (size_t x = 0; x < len; x++) - { - char c = str[x]; - if (c == '%') - return TRUE; - } - - return FALSE; -} - static BOOL replace_format_string(const char* FormatString, struct format_option_recurse* recurse, char* format, size_t formatlen);