IOT-2539 Clean unused code warnnings 39/22739/4
authorGeorge Nash <george.nash@intel.com>
Mon, 9 Oct 2017 21:48:05 +0000 (14:48 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Thu, 12 Oct 2017 18:54:47 +0000 (18:54 +0000)
commita855c499147ce3b9dd1a87db870ad2600c3e4277
tree7aa468239d8181d8c04b48e54b86161b48e51180
parent4693e1f4a754979c3c34c328b621eebeee28a46a
IOT-2539 Clean unused code warnnings

credresource.c:
Removed the [-Wunused-const-variable=] warning
The CRED_EMPTY_ROOT_MAP_SIZE was used in the past but is no longer
referenced anywhere in the code.

provisioningclient.c:
Removed the [-Wunused-const-variable=] warning
The SUPPORTED_PRMS array was used in the past but is no longer
referenced anywhere in the code.

ocserver.cpp
Removed the [-Wunused-variable] warning
Looking at the logs a instance that gDeviceUUID was used could not
be found at any point in time.

stacktest.cpp:
Removed the [-Wunused-variable] warnings
Variables peer, pinNumber, and pmSel were only used in Direct Pairing
related unit tests which were removed as part of IOT-2306.

provisioningclient.cpp:
Removed the [-Wunused-function] warning
The InputPdACL function was only used by the Direct Pairing code
that was removed as part of IOT-2306.

Bug: https://jira.iotivity.org/browse/IOT-2539
Bug: https://jira.iotivity.org/browse/IOT-2306
Change-Id: I80f52619a04ee7eafc83b79b886c1121f61a6ba1
Signed-off-by: George Nash <george.nash@intel.com>
resource/csdk/security/provisioning/sample/provisioningclient.c
resource/csdk/security/provisioning/unittest/secureresourceprovider.cpp
resource/csdk/security/src/credresource.c
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp
resource/csdk/stack/test/stacktests.cpp
resource/provisioning/examples/provisioningclient.cpp