Code cleanup 62/106762/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170105.023945 accepted/tizen/3.0.m2/tv/20170105.024226 accepted/tizen/3.0.m2/wearable/20170105.024528 accepted/tizen/3.0/common/20161227.101720 accepted/tizen/3.0/common/20170120.131000 accepted/tizen/3.0/ivi/20161227.012036 accepted/tizen/3.0/ivi/20170120.113427 accepted/tizen/3.0/mobile/20161227.011949 accepted/tizen/3.0/mobile/20170120.113337 accepted/tizen/3.0/tv/20161227.012004 accepted/tizen/3.0/tv/20170120.113355 accepted/tizen/3.0/wearable/20161227.012021 accepted/tizen/3.0/wearable/20170120.113409 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0/20161226.011357 submit/tizen_3.0/20170120.110835
authorInjun Yang <injun.yang@samsung.com>
Fri, 23 Dec 2016 02:12:10 +0000 (11:12 +0900)
committerInjun Yang <injun.yang@samsung.com>
Fri, 23 Dec 2016 05:17:57 +0000 (14:17 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurence Version] N/A

[Problem] N/A
[Cause & Measure] Remove unused code
[Checking Method] N/A

[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I7d1afbe298e091451e69f4c7528af460c21a3011
Signed-off-by: Injun Yang <injun.yang@samsung.com>
gdbus/gdbus.h
gdbus/object.c
src/gatt-client.c

index 54ab0f4..b58c486 100644 (file)
@@ -277,7 +277,7 @@ gboolean g_dbus_emit_signal_valist(DBusConnection *connection,
                                const char *path, const char *interface,
                                const char *name, int type, va_list args);
 
-#ifdef GATT_NO_RELAY
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
 gboolean g_dbus_emit_signal_to_dest(DBusConnection *connection,
                                const char *dest, const char *path,
                                const char *interface, const char *name, int type, ...);
index ba5e4fd..cbda9a6 100644 (file)
@@ -1674,7 +1674,7 @@ gboolean g_dbus_emit_signal(DBusConnection *connection,
        return result;
 }
 
-#ifdef GATT_NO_RELAY
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
 static gboolean g_dbus_emit_signal_valist_to_dest(DBusConnection *connection,
                                const char *dest, const char *path, const char *interface,
                                const char *name, int type, va_list args)
index bb3b8b7..87e363c 100644 (file)
@@ -1247,7 +1247,6 @@ void gatt_characteristic_value_changed(struct notify_client *client, const uint8
        char *chrc_path = strdup(chrc->path);
        dbus_int32_t result = 0;
 
-#ifdef GATT_NO_RELAY
        g_dbus_emit_signal_to_dest(btd_get_dbus_connection(),
                client->owner, chrc_path,
                GATT_CHARACTERISTIC_IFACE, "GattValueChanged",
@@ -1255,14 +1254,6 @@ void gatt_characteristic_value_changed(struct notify_client *client, const uint8
                DBUS_TYPE_STRING, &chrc_path,
                DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, &data, data_len,
                DBUS_TYPE_INVALID);
-#else
-       g_dbus_emit_signal(btd_get_dbus_connection(), chrc->path,
-               GATT_CHARACTERISTIC_IFACE, "GattValueChanged",
-               DBUS_TYPE_INT32, &result,
-               DBUS_TYPE_STRING, &chrc_path,
-               DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, &data, data_len,
-               DBUS_TYPE_INVALID);
-#endif
 
        if (chrc_path)
                free(chrc_path);