]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootspec: remove now-unused boot_entry_type_table
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Apr 2019 20:23:26 +0000 (22:23 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 5 Apr 2019 11:50:45 +0000 (13:50 +0200)
src/shared/bootspec.c
src/shared/bootspec.h

index b088b04da073bc961a81f95befc1a3dc9e77ea2b..3bd14d7372324657aaf4bc064522690dbcd4a942 100644 (file)
@@ -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);
index 45e1fc37c65c7c114e8b3300a05c75ea4e8bdb6e..b35eaf1110cd2bd21196e1626d88bb3721eebd40 100644 (file)
@@ -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_;