tree-wide: Remove dead code
This code seems to not be used anywhere at all, so let's drop it. Follow up forba8d00e859Follow up for85686b37b0Follow up foraff853f8eaFollow up for36dad381a2
This commit is contained in:
committed by
Yu Watanabe
parent
8621c646b8
commit
bcf716ca01
@@ -68,14 +68,6 @@ const char* unit_dbus_interface_from_name(const char *name) {
|
||||
return unit_dbus_interface_from_type(t);
|
||||
}
|
||||
|
||||
const char* unit_type_to_capitalized_string(UnitType t) {
|
||||
const char *di = unit_dbus_interface_from_type(t);
|
||||
if (!di)
|
||||
return NULL;
|
||||
|
||||
return ASSERT_PTR(startswith(di, "org.freedesktop.systemd1."));
|
||||
}
|
||||
|
||||
static const char* const unit_type_table[_UNIT_TYPE_MAX] = {
|
||||
[UNIT_SERVICE] = "service",
|
||||
[UNIT_SOCKET] = "socket",
|
||||
|
||||
Reference in New Issue
Block a user