[build] delete unused static functions
This commit is contained in:
parent
0e44b2c674
commit
d0dc657412
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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));
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user