You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by bo...@apache.org on 2017/04/18 10:50:55 UTC

[3/5] incubator-weex git commit: * [ios] remove unused line

* [ios] remove unused line


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

Branch: refs/heads/0.12-dev
Commit: 5985968fb4392f8a469da732343dea1d41400a6a
Parents: bc2d964
Author: acton393 <zh...@gmail.com>
Authored: Tue Apr 18 10:12:36 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Tue Apr 18 10:12:36 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5985968f/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
index c4c8cd3..fed8dd5 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
@@ -726,7 +726,6 @@ do {\
         CTLineTruncationType truncationType = kCTLineTruncationEnd;
         NSAttributedString *attributedString = [self buildCTAttributeString];
         NSAttributedString * lastLineText = [attributedString attributedSubstringFromRange: WXNSRangeFromCFRange(CTLineGetStringRange(lastLine))];
-//        NSMutableAttributedString *.mutableCopy;
         NSMutableAttributedString *mutableLastLineText = lastLineText.mutableCopy;
         [mutableLastLineText appendAttributedString:truncationToken];
         CTLineRef ctLastLineExtend = CTLineCreateWithAttributedString((__bridge CFAttributedStringRef)mutableLastLineText);
@@ -819,7 +818,7 @@ do {\
         actualLineCount ++;
     }
     
-    totalHeight = totalHeight + actualLineCount*leading;
+    totalHeight = totalHeight + actualLineCount * leading;
     CFRelease(frameRef);
     
     return CGSizeMake(suggestSize.width, totalHeight);