Performance improvement of PluginManager with clean up some plugin code.
[platform/framework/web/wrt-plugins-common.git] / src / Commons / JSObjectDeclaration.cpp
index 09f5ff8..81578cc 100755 (executable)
@@ -44,23 +44,18 @@ JSObjectDeclaration::~JSObjectDeclaration()
 
 bool JSObjectDeclaration::checkIframesSupported() const
 {
-    LogDebug("Check iframe supported");
     if (!m_options ||
         m_options->getIframeObject() == Options::IFrameObject::None)
     {
-        LogDebug("Iframe NOT supported for object: " << getName());
         return false;
     }
 
-    LogDebug("Iframe supported for object: " << getName());
-
     return true;
 }
 
 JSObjectDeclaration::Options::ClassType
 JSObjectDeclaration::Options::getType() const
 {
-    LogDebug("Get type field from declaration's option");
     Assert(m_options && "Pointer to options is NULL");
 
     switch (m_options->type) {
@@ -74,12 +69,11 @@ JSObjectDeclaration::Options::getType() const
 JSObjectDeclaration::Options::IFrameObject
 JSObjectDeclaration::Options::getIframeObject() const
 {
-    LogDebug("Get Frame Option");
     Assert(m_options && "Options object is NULL");
 
     switch (m_options->iframe_option) {
     case NONE: return IFrameObject::None;
-    case REFERENCE: return IFrameObject::Reference;
+    case REFERENCE: return IFrameObject::Reference; // deprecated
     case CREATE_INSTANCE: return IFrameObject::CreateInstance;
     default:
         Assert(0 && "Wrong value of behaviour type");
@@ -89,7 +83,6 @@ JSObjectDeclaration::Options::getIframeObject() const
 JSObjectDeclaration::Options::IFrameNotice
 JSObjectDeclaration::Options::getIframeNotice() const
 {
-    LogDebug("Get Frame Option");
     Assert(m_options && "Pointer to options is null");
 
     switch (m_options->iframe_notice) {
@@ -100,22 +93,6 @@ JSObjectDeclaration::Options::getIframeNotice() const
     }
 }
 
-JSObjectDeclaration::Options::IFrameOverlay
-JSObjectDeclaration::Options::getIframeOverlay() const
-{
-    LogDebug("Get Frame Option");
-    Assert(m_options && "Pointer to options is null");
-
-    switch (m_options->iframe_overlay) {
-    case IGNORED: return IFrameOverlay::Ignored;
-    case USE_OVERLAYED: return IFrameOverlay::UseOverlayed;
-    case OVERLAYED_BEFORE_ORIGINAL:
-        return IFrameOverlay::OverlayedBeforeOriginal;
-    default:
-        Assert(0 && "Wrong value of overlay option");
-    }
-}
-
 js_function_impl JSObjectDeclaration::Options::getFunctionImpl() const
 {
     Assert(m_options && "Pointer to options is null");