]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hostnamed: drop unused enums
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Apr 2021 13:33:14 +0000 (15:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 29 Apr 2021 14:39:09 +0000 (16:39 +0200)
src/hostname/hostnamed.c

index d7e3e4e6924a71b726f491ba2e556d1dda251705..3d7f30243522c24911e674c7b107f48900dd858a 100644 (file)
@@ -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,