From f8da67cdf2d229d7e90558dce08cce7425ebc52d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 28 Apr 2021 15:33:14 +0200 Subject: [PATCH] hostnamed: drop unused enums --- src/hostname/hostnamed.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index d7e3e4e692..3d7f302435 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -40,6 +40,8 @@ #define VALID_DEPLOYMENT_CHARS (DIGITS LETTERS "-.:") +/* Properties we cache are indexed by an enum, to make invalidation easy and systematic (as we can iterate + * through them all, and they are uniformly strings). */ enum { /* Read from /etc/hostname */ PROP_STATIC_HOSTNAME, @@ -51,9 +53,6 @@ enum { PROP_DEPLOYMENT, PROP_LOCATION, - PROP_HARDWARE_VENDOR, - PROP_HARDWARE_MODEL, - /* Read from /etc/os-release (or /usr/lib/os-release) */ PROP_OS_PRETTY_NAME, PROP_OS_CPE_NAME,