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.
This commit is contained in:
Thomas Haller 2018-04-04 21:03:36 +02:00
parent 3f969d3b5b
commit 011258a086
2 changed files with 0 additions and 8 deletions

View file

@ -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)
{

View file

@ -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__ */