From: Lennart Poettering Date: Wed, 28 Apr 2021 13:33:14 +0000 (+0200) Subject: hostnamed: drop unused enums X-Git-Tag: v249-rc1~325^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8da67cdf2d229d7e90558dce08cce7425ebc52d;p=thirdparty%2Fsystemd.git hostnamed: drop unused enums --- diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index d7e3e4e6924..3d7f3024352 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,