diff options
author | Thomas Haller <thaller@redhat.com> | 2018-04-04 21:03:36 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-04-04 21:03:38 +0200 |
commit | d1513b0c3fcf6fa3c93d692dccc10632a728c5f4 (patch) | |
tree | 85ef91052d7a37c9118c28bce43deb19d1c2553c | |
parent | 87b5787f936bfe15ba58fe37155b239d22c3ae59 (diff) | |
download | NetworkManager-d1513b0c3fcf6fa3c93d692dccc10632a728c5f4.tar.gz |
core: drop unnecessary #if WITH_POLKIT from nm-auth-subject.h
We rely on the linker to throw away unused functions.
No need for the #if in this case.
-rw-r--r-- | src/nm-auth-subject.c | 4 | ||||
-rw-r--r-- | src/nm-auth-subject.h | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/nm-auth-subject.c b/src/nm-auth-subject.c index 9b0251365c..a96a4d99a4 100644 --- a/src/nm-auth-subject.c +++ b/src/nm-auth-subject.c @@ -102,8 +102,6 @@ nm_auth_subject_to_string (NMAuthSubject *self, char *buf, gsize buf_len) return buf; } -#if WITH_POLKIT - /* returns a floating variant */ GVariant * nm_auth_subject_unix_process_to_polkit_gvariant (NMAuthSubject *self) @@ -125,8 +123,6 @@ nm_auth_subject_unix_process_to_polkit_gvariant (NMAuthSubject *self) return ret; } -#endif - NMAuthSubjectType nm_auth_subject_get_subject_type (NMAuthSubject *subject) { diff --git a/src/nm-auth-subject.h b/src/nm-auth-subject.h index a0b6d14b2a..a9921dbd96 100644 --- a/src/nm-auth-subject.h +++ b/src/nm-auth-subject.h @@ -68,10 +68,6 @@ gulong nm_auth_subject_get_unix_process_uid (NMAuthSubject *subject); const char *nm_auth_subject_to_string (NMAuthSubject *self, char *buf, gsize buf_len); -#if WITH_POLKIT - GVariant * nm_auth_subject_unix_process_to_polkit_gvariant (NMAuthSubject *self); -#endif - #endif /* __NETWORKMANAGER_AUTH_SUBJECT_H__ */ |