diff --git a/weex_core/Source/core/bridge/bridge.cpp b/weex_core/Source/core/bridge/bridge.cpp index 22d913976c..76687543df 100644 --- a/weex_core/Source/core/bridge/bridge.cpp +++ b/weex_core/Source/core/bridge/bridge.cpp @@ -132,13 +132,6 @@ namespace WeexCore { } } - void Bridge::setViewPortWidth(const char *instanceId, float value) { - RenderPage *page = RenderManager::GetInstance()->GetPage(std::string(instanceId)); - if (page == nullptr) - return; - page->set_viewport_width(value); - } - void Bridge::setDefaultHeightAndWidthIntoRootDom(const char *instanceId, const float defaultWidth, const float defaultHeight, const bool isWidthWrapContent, const bool isHeightWrapContent) { diff --git a/weex_core/Source/core/bridge/bridge.h b/weex_core/Source/core/bridge/bridge.h index 8da0fdc710..5aed44617b 100644 --- a/weex_core/Source/core/bridge/bridge.h +++ b/weex_core/Source/core/bridge/bridge.h @@ -114,8 +114,6 @@ namespace WeexCore { void markDirty(const char *instanceId,const char *ref, bool dirty); - void setViewPortWidth(const char *instanceId, float value); - void setDefaultHeightAndWidthIntoRootDom(const char *instanceId, const float defaultWidth, const float defaultHeight, const bool isWidthWrapContent, const bool isHeightWrapContent); void setRenderContainerWrapContent(const char* instanceId,bool wrap);