mirror of
https://github.com/irssi/irssi.git
synced 2026-08-24 11:02:21 +02:00
remove unused variables in core and fe-common
This commit is contained in:
parent
3e9a9aaba6
commit
c6f28666c4
25 changed files with 251 additions and 417 deletions
|
|
@ -496,10 +496,10 @@ unsigned int g_istr_hash(gconstpointer v)
|
|||
/* Find `mask' from `data', you can use * and ? wildcards. */
|
||||
int match_wildcards(const char *cmask, const char *data)
|
||||
{
|
||||
char *mask, *newmask, *p1, *p2;
|
||||
char *mask, *p1, *p2;
|
||||
int ret;
|
||||
|
||||
newmask = mask = g_strdup(cmask);
|
||||
mask = g_strdup(cmask);
|
||||
for (; *mask != '\0' && *data != '\0'; mask++) {
|
||||
if (*mask != '*') {
|
||||
if (*mask != '?' && i_toupper(*mask) != i_toupper(*data))
|
||||
|
|
@ -533,7 +533,6 @@ int match_wildcards(const char *cmask, const char *data)
|
|||
while (*mask == '*') mask++;
|
||||
|
||||
ret = data != NULL && *data == '\0' && *mask == '\0';
|
||||
g_free(newmask);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue