From: Zbigniew Jędrzejewski-Szmek Date: Thu, 4 Apr 2019 20:23:26 +0000 (+0200) Subject: bootspec: remove now-unused boot_entry_type_table X-Git-Tag: v243-rc1~572^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f42be65b94d284a604517b561ffa2e9a95707bf;p=thirdparty%2Fsystemd.git bootspec: remove now-unused boot_entry_type_table --- diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index b088b04da07..3bd14d73723 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -1423,11 +1423,3 @@ found: return 0; } - -static const char* const boot_entry_type_table[_BOOT_ENTRY_MAX] = { - [BOOT_ENTRY_CONF] = "conf", - [BOOT_ENTRY_UNIFIED] = "unified", - [BOOT_ENTRY_LOADER] = "loader", -}; - -DEFINE_STRING_TABLE_LOOKUP(boot_entry_type, BootEntryType); diff --git a/src/shared/bootspec.h b/src/shared/bootspec.h index 45e1fc37c65..b35eaf1110c 100644 --- a/src/shared/bootspec.h +++ b/src/shared/bootspec.h @@ -79,6 +79,3 @@ static inline const char* boot_entry_title(const BootEntry *entry) { int find_esp_and_warn(const char *path, bool unprivileged_mode, char **ret_path, uint32_t *ret_part, uint64_t *ret_pstart, uint64_t *ret_psize, sd_id128_t *ret_uuid); int find_xbootldr_and_warn(const char *path, bool unprivileged_mode, char **ret_path,sd_id128_t *ret_uuid); - -const char* boot_entry_type_to_string(BootEntryType t) _const_; -BootEntryType boot_entry_type_from_string(const char *s) _pure_;