You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/05/23 03:33:36 UTC

[2/6] incubator-weex git commit: - [ios] remove unused _fillAbsolutePositions

- [ios] remove unused _fillAbsolutePositions


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/5e51d1f3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/5e51d1f3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/5e51d1f3

Branch: refs/heads/0.13-dev
Commit: 5e51d1f3d07e06c1baa93a65484ff3520fc63bdc
Parents: 722d9a7
Author: yinfeng <cx...@apache.org>
Authored: Fri May 19 15:44:49 2017 +0800
Committer: yinfeng <cx...@apache.org>
Committed: Fri May 19 15:44:49 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h |  2 --
 ios/sdk/WeexSDK/Sources/Layout/WXComponent+Layout.m      | 10 ----------
 2 files changed, 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5e51d1f3/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h b/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
index 21d510e..ce2e80a 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
+++ b/ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
@@ -166,8 +166,6 @@
 
 - (NSUInteger)_childrenCountForLayout;
 
-- (void)_fillAbsolutePositions;
-
 ///--------------------------------------
 /// @name Private Methods
 ///--------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5e51d1f3/ios/sdk/WeexSDK/Sources/Layout/WXComponent+Layout.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Layout/WXComponent+Layout.m b/ios/sdk/WeexSDK/Sources/Layout/WXComponent+Layout.m
index f5becf2..60c56bf 100644
--- a/ios/sdk/WeexSDK/Sources/Layout/WXComponent+Layout.m
+++ b/ios/sdk/WeexSDK/Sources/Layout/WXComponent+Layout.m
@@ -355,16 +355,6 @@ do {\
     WX_STYLE_RESET_CSS_NODE(paddingBottom, padding[CSS_BOTTOM], 0.0)
 }
 
-- (void)_fillAbsolutePositions
-{
-    CGPoint absolutePosition = _absolutePosition;
-    NSArray *subcomponents = self.subcomponents;
-    for (WXComponent *subcomponent in subcomponents) {
-        subcomponent->_absolutePosition = CGPointMake(absolutePosition.x + subcomponent.calculatedFrame.origin.x, absolutePosition.y + subcomponent.calculatedFrame.origin.y);
-        [subcomponent _fillAbsolutePositions];
-    }
-}
-
 #pragma mark CSS Node Override
 
 static void cssNodePrint(void *context)