summaryrefslogtreecommitdiff
path: root/name.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-26 19:29:24 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-26 19:29:24 +0100
commitbe66c128c3d79f106d26d071a4171ea0a3c07d02 (patch)
treee83f3ea21f3bb6d8b2a6df4a558aabeabb269795 /name.c
parentac1135be1f18443981211e38fc66437f147c6aee (diff)
drop unused name_type_can_xxx() calls
Diffstat (limited to 'name.c')
-rw-r--r--name.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/name.c b/name.c
index e88dc85839..e755eda397 100644
--- a/name.c
+++ b/name.c
@@ -432,10 +432,10 @@ int name_start(Name *n) {
return NAME_VTABLE(n)->start(n);
}
-bool name_type_can_start(NameType t) {
- assert(t >= 0 && t < _NAME_TYPE_MAX);
+bool name_can_start(Name *n) {
+ assert(n);
- return !!name_vtable[t]->start;
+ return !!NAME_VTABLE(n)->start;
}
/* Errors:
@@ -484,16 +484,10 @@ int name_reload(Name *n) {
return NAME_VTABLE(n)->reload(n);
}
-bool name_type_can_reload(NameType t) {
- assert(t >= 0 && t < _NAME_TYPE_MAX);
-
- return !!name_vtable[t]->reload;
-}
-
bool name_can_reload(Name *n) {
assert(n);
- if (!name_type_can_reload(n->meta.type))
+ if (!NAME_VTABLE(n)->reload)
return false;
if (!NAME_VTABLE(n)->can_reload)