Browse Source

MT#55283 remove dead code

Change-Id: Iebfc00d38593db37139767c8305b5a120633ce11
pull/1870/head
Richard Fuchs 1 year ago
parent
commit
5b2d8f5e92
1 changed files with 0 additions and 24 deletions
  1. +0
    -24
      include/helpers.h

+ 0
- 24
include/helpers.h View File

@ -29,8 +29,6 @@
typedef bool (*parse_func)(char **, void **, void *);
int pcre2_multi_match(pcre2_code *, const char *, unsigned int, parse_func, void *, GQueue *);
INLINE void strmove(char **, char **);
INLINE void strdupfree(char **, const char *);
@ -141,28 +139,6 @@ INLINE GQueue *g_hash_table_lookup_queue_new(GHashTable *ht, void *key, GDestroy
/*** STRING HELPERS ***/
INLINE void strmove(char **d, char **s) {
if (*d)
free(*d);
*d = *s;
*s = strdup("");
}
INLINE void strdupfree(char **d, const char *s) {
if (*d)
free(*d);
*d = strdup(s);
}
INLINE int strmemcmp(const void *mem, int len, const char *s) {
int l = strlen(s);
if (l < len)
return -1;
if (l > len)
return 1;
return memcmp(mem, s, len);
}
INLINE const char *__get_enum_array_text(const char * const *array, unsigned int idx,
unsigned int len, const char *deflt)
{


Loading…
Cancel
Save