summaryrefslogtreecommitdiff
path: root/src/hostname
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-04-28 15:33:14 +0200
committerLennart Poettering <lennart@poettering.net>2021-04-29 16:39:09 +0200
commitf8da67cdf2d229d7e90558dce08cce7425ebc52d (patch)
treea4fbf59950d856ac4035fbbf52b2872258b27a5d /src/hostname
parentf2a434a5b87fb4073357ec5e659c14e02ab17bc3 (diff)
downloadsystemd-f8da67cdf2d229d7e90558dce08cce7425ebc52d.tar.gz
hostnamed: drop unused enums
Diffstat (limited to 'src/hostname')
-rw-r--r--src/hostname/hostnamed.c5
1 files 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,