Annotate deprecated functions with macro 87/24387/6
authorGeorge Nash <george.nash@intel.com>
Tue, 13 Mar 2018 22:57:46 +0000 (15:57 -0700)
committerDave Thaler <dthaler@microsoft.com>
Fri, 23 Mar 2018 05:35:03 +0000 (05:35 +0000)
commita33c1c1ddbbc9dc1b8aaca34196300d03c5d206f
tree98adc5a9a9bbf4949ce0b2292be057432c1e07f6
parent19f4524955eb5857f8f8491ea212fc94f1355ad0
Annotate deprecated functions with macro

If a function was already marked as deprecated using
the @derecated doxygen annotation the OC_DEPRECATED_MSG
macro was added to generate compiler warnings when a
deprecated function was used.

The date the function was deprecated was obtained by
using git blame to find when the @deprecated tag
was added to the function documentation. The date the
tag was added was used in the macro.

Three instances of the function registerDeviceInfo
are marked as deprecated but the macro was not added
due to inheritance and mock objects implementing
their own version of the registerDeviceInfo. Caused
difficulty adding the macro to them without breaking
the build.

An attempt was made to clean up any remaining usages
of deprecated functions that were not part of unit tests.
It is possible that one or more instances of the
'registerDeviceInfo' function was missed.

Java is still using deprecated functions:
IOT-3011 and IOT-3012 to address the fact that Java is
still using deprecated functions.

Change-Id: I39b1af690b99d52f2e0d026e4c27b908e2f6c052
Signed-off-by: George Nash <george.nash@intel.com>
48 files changed:
cloud/samples/client/airconditioner/aircon_controlee.cpp
cloud/samples/client/airconditioner/aircon_controller.cpp
cloud/samples/client/group_invite/group_invite.cpp
examples/OICMiddle/OICMiddle.cpp
java/jni/JniOcPlatform.cpp
java/jni/JniOcProvisioning.cpp
resource/IPCA/samples/ElevatorServer/elevatorserver.cpp
resource/IPCA/unittests/mockOC.cpp
resource/IPCA/unittests/testelevatorserver.cpp
resource/csdk/connectivity/src/adapter_util/cacertprofile.c
resource/examples/simpleserverHQ.cpp
resource/include/InProcServerWrapper.h
resource/include/OCApi.h
resource/include/OCProvisioningManager.hpp
resource/include/OutOfProcServerWrapper.h
resource/provisioning/examples/provisioningclient.cpp
resource/provisioning/examples/subownerclient.cpp
resource/provisioning/unittests/OCProvisioningTest.cpp
resource/provisioning/unittests/SConscript
resource/src/OCPlatform_impl.cpp
resource/unittests/OCPlatformTest.cpp
resource/unittests/SConscript
service/easy-setup/sampleapp/mediator/linux/richsdk_sample/mediator.cpp
service/easy-setup/sampleapp/mediator/linux/richsdk_sample/submediator.cpp
service/notification/cpp-wrapper/unittest/NSConsumerServiceTest.cpp
service/notification/cpp-wrapper/unittest/NSConsumerServiceTest2.cpp
service/notification/cpp-wrapper/unittest/NSProviderServiceTest.cpp
service/notification/cpp-wrapper/unittest/NSProviderServiceTest2.cpp
service/notification/unittest/NSConsumerTest.cpp
service/notification/unittest/NSConsumerTest2.cpp
service/notification/unittest/NSProviderTest.cpp
service/notification/unittest/NSProviderTest2.cpp
service/resource-container/examples/BMISensorBundle/src/inputSensors/HeightSensorApp/include/HeightSensorApp.h
service/resource-container/examples/BMISensorBundle/src/inputSensors/HeightSensorApp/src/HeightSensorApp.cpp
service/resource-container/examples/BMISensorBundle/src/inputSensors/WeightSensorApp/include/WeightSensorApp.h
service/resource-container/examples/BMISensorBundle/src/inputSensors/WeightSensorApp/src/WeightSensorApp.cpp
service/resource-container/examples/ContainerSampleClient.cpp
service/resource-container/examples/DiscomfortIndexSensorBundle/src/inputSensors/THSensorApp/include/ThingResourceServer.h
service/resource-container/examples/DiscomfortIndexSensorBundle/src/inputSensors/THSensorApp/src/ThingResourceServer.cpp
service/resource-container/examples/DiscomfortIndexSensorBundle/src/inputSensors/THSensorApp1/include/ThingResourceServer1.h
service/resource-container/examples/DiscomfortIndexSensorBundle/src/inputSensors/THSensorApp1/src/ThingResourceServer1.cpp
service/resource-encapsulation/examples/linux/NestedAttributesClient.cpp
service/resource-encapsulation/examples/linux/SampleResourceClient.cpp
service/resource-encapsulation/unittests/DiscoveryManagerTest.cpp
service/scene-manager/sampleapp/linux/fanserver.cpp
service/scene-manager/sampleapp/linux/lightserver.cpp
service/scene-manager/sampleapp/linux/sceneclient.cpp
service/scene-manager/sampleapp/linux/sceneserver.cpp