diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2013-06-06 21:03:42 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-06-06 21:03:42 -0400 |
commit | 1eaa837ba654d2ee005de5b53dca5bc5972bfd34 (patch) | |
tree | 84b15403809ac79926177b53f55121847ce8bcf7 /src/libudev/strv.h | |
parent | f90cec7e845b681aeeec55a6711c289b28790742 (diff) |
Round 2 of remove unused DECLS from src/libudev/{ioprio,log,macro,set,strv}
Remove the following unused DECLS:
IOPRIO_BITS
IOPRIO_CLASS_SHIFT
IOPRIO_PRIO_MASK
IOPRIO_PRIO_CLASS
IOPRIO_PRIO_DATA
IOPRIO_PRIO_VALUE
ioprio_valid
IOPRIO_BE_NR
IOPRIO_WHO_PROCESS
IOPRIO_WHO_PGRP
IOPRIO_WHO_USER
MESSAGE_ID
EXIT_TEST_SKIP
XSTRINGIFY
STRINGIFY
ALIGN_PTR
ALIGN4_PTR
ALIGN8_PTR
MAX
MAX3
MIN
CLAMP
zero
CHAR_TO_STR
VA_FORMAT_ADVANCE
SET_FLAG
SET_FOREACH
SET_FOREACH_BACKWARDS
STRV_FOREACH_BACKWARDS
STRV_FOREACH_PAIR
_unused_
_destructor_
_deprecated_
_weak_
_hidden_
_weakref_
_introspect_
_alignas_
Remove the following unused static inline functions:
static inline int ioprio_set
static inline int ioprio_get
static inline const char* STRV_IFNOTNULL
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/strv.h')
-rw-r--r-- | src/libudev/strv.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libudev/strv.h b/src/libudev/strv.h index 821610ba19..d9e0e1c20b 100644 --- a/src/libudev/strv.h +++ b/src/libudev/strv.h @@ -42,20 +42,9 @@ char **strv_uniq(char **l); char **strv_new(const char *x, ...) _sentinel_; char **strv_new_ap(const char *x, va_list ap); -static inline const char* STRV_IFNOTNULL(const char *x) { - return x ? x : (const char *) -1; -} - static inline bool strv_isempty(char * const *l) { return !l || !*l; } #define STRV_FOREACH(s, l) \ for ((s) = (l); (s) && *(s); (s)++) - -#define STRV_FOREACH_BACKWARDS(s, l) \ - for (; (l) && ((s) >= (l)); (s)--) - -#define STRV_FOREACH_PAIR(x, y, l) \ - for ((x) = (l), (y) = (x+1); (x) && *(x) && *(y); (x) += 2, (y) = (x + 1)) - |