From 97967ae61bb63a9dd10e4ae9447fdb26ece4285b Mon Sep 17 00:00:00 2001 From: miomin Date: Thu, 14 Jun 2018 20:11:30 +0800 Subject: [PATCH] [WEEX-442][Core] Fix compile error --- weex_core/Source/core/bridge/bridge.cpp | 7 ------- weex_core/Source/core/bridge/bridge.h | 2 -- 2 files changed, 9 deletions(-) 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);