X Tutup
Skip to content

Commit f8da67c

Browse files
committed
hostnamed: drop unused enums
1 parent f2a434a commit f8da67c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/hostname/hostnamed.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040

4141
#define VALID_DEPLOYMENT_CHARS (DIGITS LETTERS "-.:")
4242

43+
/* Properties we cache are indexed by an enum, to make invalidation easy and systematic (as we can iterate
44+
* through them all, and they are uniformly strings). */
4345
enum {
4446
/* Read from /etc/hostname */
4547
PROP_STATIC_HOSTNAME,
@@ -51,9 +53,6 @@ enum {
5153
PROP_DEPLOYMENT,
5254
PROP_LOCATION,
5355

54-
PROP_HARDWARE_VENDOR,
55-
PROP_HARDWARE_MODEL,
56-
5756
/* Read from /etc/os-release (or /usr/lib/os-release) */
5857
PROP_OS_PRETTY_NAME,
5958
PROP_OS_CPE_NAME,

0 commit comments

Comments
 (0)
X Tutup