Android: Removed a null entity handler initializer from OcPlatform
authorTim Kourt <tim.a.kourt@intel.com>
Wed, 23 Sep 2015 17:09:28 +0000 (10:09 -0700)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Wed, 23 Sep 2015 23:33:08 +0000 (23:33 +0000)
This should have been removed as a part of the
https://gerrit.iotivity.org/gerrit/#/c/2346/

Change-Id: I3fd6de963b21174a41627ffdfe6b4e822bf313ee
Signed-off-by: Tim Kourt <tim.a.kourt@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3001
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
android/android_api/base/src/main/java/org/iotivity/base/OcPlatform.java

index 8004287..dc0062f 100644 (file)
@@ -489,15 +489,6 @@ public final class OcPlatform {
                 resProperty |= prop.getValue();
         }
 
-        if (null == entityHandler) {
-            entityHandler = new EntityHandler() {
-                @Override
-                public EntityHandlerResult handleEntity(OcResourceRequest ocResourceRequest) {
-                    return EntityHandlerResult.OK;
-                }
-            };
-        }
-
         return OcPlatform.registerResource1(resourceUri,
                 resourceTypeName,
                 resourceInterface,