IOT-2539 removed unused code from subownerclient.c
authorGeorge Nash <george.nash@intel.com>
Fri, 4 Aug 2017 20:07:20 +0000 (13:07 -0700)
committerGeorge Nash <george.nash@intel.com>
Thu, 31 Aug 2017 22:30:42 +0000 (22:30 +0000)
commitab704dcbeff1e9dc9d4b9086eb48e624a2e4ced9
tree47ca6c68ccb82de1fd9807ba562d22e5edf02c67
parent03f23f3703cb00c3540a38f42caa7bed3080003b
IOT-2539 removed unused code from subownerclient.c

The subowner client contained several functions and
variables that were unused. Unused code is not
maintained and should be removed.

selectTwoDiffNum is an unused function
printUuidList is an unused function
updateDoxmForMOTCB is an unused function
g_unown_cnt is an unused variable
SUPPORTED_PRMS is an unused const varaible

provisionCred is unused but unlike the other unused
code it was referenced in some commented out code
in main.  For that reason the provisionCred code
was not just removed. Instead a macro was used to
block out the code from the compiler. The code can
be enabled by changing PROVISION_CRED_SUPPORTED macro
to 1.

Change-Id: Ia89d1ebd4cfeff7e8771147d309ba7155f97818c
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21755
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit 469c53b32c791a7cc8405ff1fcb340fd511d5880)
resource/csdk/security/provisioning/sample/subownerclient.c