summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-09-11 19:14:28 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-12 19:09:01 +0200
commitc4545b1e910857bc0dae7ce2ed6291d8bd1fc4f2 (patch)
tree254c4038b8818591aa71ea0f79b53099d7f56384
parentaac071824f6c98003f30d49ab440c15b4b53692c (diff)
downloadsssd-c4545b1e910857bc0dae7ce2ed6291d8bd1fc4f2.tar.gz
sssd-c4545b1e910857bc0dae7ce2ed6291d8bd1fc4f2.tar.bz2
sssd-c4545b1e910857bc0dae7ce2ed6291d8bd1fc4f2.zip
Remove unused code
-rw-r--r--src/sbus/sssd_dbus.h3
-rw-r--r--src/sbus/sssd_dbus_common.c66
2 files changed, 0 insertions, 69 deletions
diff --git a/src/sbus/sssd_dbus.h b/src/sbus/sssd_dbus.h
index 98159a7b..49b09331 100644
--- a/src/sbus/sssd_dbus.h
+++ b/src/sbus/sssd_dbus.h
@@ -164,7 +164,4 @@ int sbus_conn_send(struct sbus_connection *conn,
void sbus_conn_send_reply(struct sbus_connection *conn,
DBusMessage *reply);
-int sbus_is_dbus_fixed_type(int dbus_type);
-int sbus_is_dbus_string_type(int dbus_type);
-size_t sbus_get_dbus_type_size(int dbus_type);
#endif /* _SSSD_DBUS_H_*/
diff --git a/src/sbus/sssd_dbus_common.c b/src/sbus/sssd_dbus_common.c
index d762005e..d16a763a 100644
--- a/src/sbus/sssd_dbus_common.c
+++ b/src/sbus/sssd_dbus_common.c
@@ -377,69 +377,3 @@ void sbus_remove_timeout(DBusTimeout *dbus_timeout, void *data)
talloc_free(timeout);
}
-
-/* =Helpers=============================================================== */
-
-int sbus_is_dbus_fixed_type(int dbus_type)
-{
- switch (dbus_type) {
- case DBUS_TYPE_BYTE:
- case DBUS_TYPE_BOOLEAN:
- case DBUS_TYPE_INT16:
- case DBUS_TYPE_UINT16:
- case DBUS_TYPE_INT32:
- case DBUS_TYPE_UINT32:
- case DBUS_TYPE_INT64:
- case DBUS_TYPE_UINT64:
- case DBUS_TYPE_DOUBLE:
- return true;
- }
- return false;
-}
-
-int sbus_is_dbus_string_type(int dbus_type)
-{
- switch(dbus_type) {
- case DBUS_TYPE_STRING:
- case DBUS_TYPE_OBJECT_PATH:
- case DBUS_TYPE_SIGNATURE:
- return true;
- }
- return false;
-}
-
-size_t sbus_get_dbus_type_size(int dbus_type)
-{
- size_t ret;
-
- switch(dbus_type) {
- /* 1-byte types */
- case DBUS_TYPE_BYTE:
- ret = 1;
- break;
-
- /* 2-byte types */
- case DBUS_TYPE_INT16:
- case DBUS_TYPE_UINT16:
- ret = 2;
- break;
-
- /* 4-byte types */
- case DBUS_TYPE_BOOLEAN:
- case DBUS_TYPE_INT32:
- case DBUS_TYPE_UINT32:
- ret = 4;
- break;
-
- /* 8-byte types */
- case DBUS_TYPE_INT64:
- case DBUS_TYPE_UINT64:
- case DBUS_TYPE_DOUBLE:
- ret = 8;
- break;
-
- default:
- ret = 0;
- }
- return ret;
-}