Revert "[CONPRO-1337] Disabled Presence Feature"
[platform/upstream/iotivity.git] / resource / src / InProcServerWrapper.cpp
index 5989cf5..b4b799e 100644 (file)
@@ -606,7 +606,6 @@ namespace OC
 
     OCStackResult InProcServerWrapper::startPresence(const unsigned int seconds)
     {
-#ifdef WITH_PRESENCE
         auto cLock = m_csdkLock.lock();
         OCStackResult result = OC_STACK_ERROR;
         if(cLock)
@@ -620,14 +619,10 @@ namespace OC
             throw OCException(OC::Exception::START_PRESENCE_FAILED, result);
         }
         return result;
-#else
-        return OC_STACK_NOT_IMPLEMENTED;
-#endif
     }
 
     OCStackResult InProcServerWrapper::stopPresence()
     {
-#ifdef WITH_PRESENCE
         auto cLock = m_csdkLock.lock();
         OCStackResult result = OC_STACK_ERROR;
         if(cLock)
@@ -641,9 +636,6 @@ namespace OC
             throw OCException(OC::Exception::END_PRESENCE_FAILED, result);
         }
         return result;
-#else
-        return OC_STACK_NOT_IMPLEMENTED;
-#endif
     }
 
     OCStackResult InProcServerWrapper::sendResponse(