diff options
author | Simon McVittie <smcv@collabora.com> | 2019-01-23 12:09:04 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2019-01-23 12:09:04 +0000 |
commit | ffa34d6a545afc78781709e848d74a2d3e1cb14b (patch) | |
tree | 32b38f9471b834c7fa037f2e4d9e61894b7c1d05 /dbus | |
parent | bd860d7525de17ecffc2c75a9e3ee617da528e34 (diff) | |
download | dbus-ffa34d6a545afc78781709e848d74a2d3e1cb14b.tar.gz |
_dbus_user_database_get_gid: Remove unused function
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-userdb-util.c | 21 | ||||
-rw-r--r-- | dbus/dbus-userdb.h | 4 |
2 files changed, 0 insertions, 25 deletions
diff --git a/dbus/dbus-userdb-util.c b/dbus/dbus-userdb-util.c index 09ca7f60..86ee00dd 100644 --- a/dbus/dbus-userdb-util.c +++ b/dbus/dbus-userdb-util.c @@ -361,27 +361,6 @@ _dbus_user_database_get_groupname (DBusUserDatabase *db, } /** - * Gets the user information for the given GID, - * returned group info should not be freed. - * - * @param db user database - * @param gid the group ID - * @param info return location for const ref to group info - * @param error error location - * @returns #FALSE if error is set - */ -dbus_bool_t -_dbus_user_database_get_gid (DBusUserDatabase *db, - dbus_gid_t gid, - const DBusGroupInfo **info, - DBusError *error) -{ - *info = _dbus_user_database_lookup_group (db, gid, NULL, error); - return *info != NULL; -} - - -/** * Gets all groups corresponding to the given UID. Returns #FALSE * if no memory, or user isn't known, but always initializes * group_ids to a NULL array. diff --git a/dbus/dbus-userdb.h b/dbus/dbus-userdb.h index fa456765..f2c2cc19 100644 --- a/dbus/dbus-userdb.h +++ b/dbus/dbus-userdb.h @@ -61,10 +61,6 @@ dbus_bool_t _dbus_user_database_get_uid (DBusUserDatabase *db, dbus_uid_t uid, const DBusUserInfo **info, DBusError *error); -dbus_bool_t _dbus_user_database_get_gid (DBusUserDatabase *db, - dbus_gid_t gid, - const DBusGroupInfo **info, - DBusError *error); DBUS_PRIVATE_EXPORT dbus_bool_t _dbus_user_database_get_username (DBusUserDatabase *db, const DBusString *username, |