[Bluetooth] Remove redundant Destroy* functions 80/244480/3
authorPawel Wasowski <p.wasowski2@samsung.com>
Wed, 16 Sep 2020 14:03:51 +0000 (16:03 +0200)
committerPiotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Mon, 21 Sep 2020 07:55:05 +0000 (09:55 +0200)
commitc74b60a827bdf2a295ff88c7811d106ef62f3a39
tree9fc8255c04f1d99a95236b8244f4529d7245006a
parent53f0ea12005f6ef09467fc7ae77d6b0a8aba1e65
[Bluetooth] Remove redundant Destroy* functions

Destroy* functions from BluetoothGATTServer class were removed, because
they internally destroyed nested GATT objects.
Such behavior is safe, but redundant, because the native methods already
destroy nested objects.
Their usages were replaced by their counterparts from
BluetoothGATTServerService class.

[Verification] The code compiles. Tested in chrome console together with
https://review.tizen.org/gerrit/#/c/platform/core/api/webapi-plugins/+/244481/
No issues observed.

Change-Id: Ied428687fd4467fe9418afa9f87446c3a9b5b147
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
src/bluetooth/bluetooth_gatt_server.cc
src/bluetooth/bluetooth_gatt_server.h
src/bluetooth/bluetooth_gatt_server_service.h