Remove unused sink/source state hook slots 28/107628/1
authorHyunseok Lee <hs7388.lee@samsung.com>
Thu, 29 Dec 2016 02:27:54 +0000 (11:27 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 29 Dec 2016 02:43:04 +0000 (11:43 +0900)
[Version] 5.0.118
[Profile] Common
[Issue Type] Clean Up

Change-Id: I8b79b8c68e990935116c5919876c227f873f55f4

packaging/pulseaudio-modules-tizen.spec
src/device-manager.c

index 87f784b..a158f8c 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.117
+Version:          5.0.118
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 23d0220..5a027cc 100644 (file)
@@ -357,8 +357,8 @@ struct pa_device_manager {
     PA_REFCNT_DECLARE;
 
     pa_core *core;
-    pa_hook_slot *sink_put_hook_slot, *sink_state_changed_slot, *sink_unlink_hook_slot;
-    pa_hook_slot *source_put_hook_slot, *source_state_changed_slot, *source_unlink_hook_slot;
+    pa_hook_slot *sink_put_hook_slot, *sink_unlink_hook_slot;
+    pa_hook_slot *source_put_hook_slot, *source_unlink_hook_slot;
     pa_hook_slot *comm_hook_device_connection_changed_slot;
     pa_hook_slot *comm_hook_device_state_changed_slot;
     pa_communicator *comm;
@@ -3205,14 +3205,10 @@ void pa_device_manager_unref(pa_device_manager *dm) {
         pa_hook_slot_free(dm->comm_hook_device_state_changed_slot);
     if (dm->sink_put_hook_slot)
         pa_hook_slot_free(dm->sink_put_hook_slot);
-    if (dm->sink_state_changed_slot)
-        pa_hook_slot_free(dm->sink_state_changed_slot);
     if (dm->sink_unlink_hook_slot)
         pa_hook_slot_free(dm->sink_unlink_hook_slot);
     if (dm->source_put_hook_slot)
         pa_hook_slot_free(dm->source_put_hook_slot);
-    if (dm->source_state_changed_slot)
-        pa_hook_slot_free(dm->source_state_changed_slot);
     if (dm->source_unlink_hook_slot)
         pa_hook_slot_free(dm->source_unlink_hook_slot);