Removed Dead FormOCResponse Code
authorErich Keane <erich.keane@intel.com>
Tue, 17 Mar 2015 21:05:51 +0000 (14:05 -0700)
committerSashi Penta <sashi.kumar.penta@intel.com>
Wed, 18 Mar 2015 20:50:50 +0000 (20:50 +0000)
commit6f0c47de9f43ee6eba79c4ea2ab555e6b570919e
tree5313d6fc0f3e281b6cc2f8bd1b479055b8635551
parent49ead758a03c532e7c95f5b6eb88c1d979cd36a0
Removed Dead FormOCResponse Code

The function FormOCResponse was previously only used in one place,
and had no side effects other than allocating memory and filling an
object with a bunch of different values.

The calling site (OCProcessPresence) only refers to the OCResponse
object in this single call, then leaks it immediately after.

This changeset removes the function, the variable, and the call to
this function.

Change-Id: Ic40440fce04343149528fb4d33f42f73da908171
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/494
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
resource/csdk/stack/src/ocstack.c