From 7f42be65b94d284a604517b561ffa2e9a95707bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 4 Apr 2019 22:23:26 +0200 Subject: [PATCH] bootspec: remove now-unused boot_entry_type_table --- src/shared/bootspec.c | 8 -------- src/shared/bootspec.h | 3 --- 2 files changed, 11 deletions(-) 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_; -- 2.47.3