diff options
author | Thomas Haller <thaller@redhat.com> | 2018-04-04 21:03:36 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-04-05 17:45:30 +0200 |
commit | 011258a086d3c050d7856addf4fe887e443a53fb (patch) | |
tree | 85ef91052d7a37c9118c28bce43deb19d1c2553c | |
parent | 3f969d3b5b95f3d0f4fc0ba7e8d42bdf85bdef38 (diff) | |
download | NetworkManager-011258a086d3c050d7856addf4fe887e443a53fb.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__ */ |