diff options
author | nyamatongwe <devnull@localhost> | 2011-07-10 12:17:34 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-07-10 12:17:34 +1000 |
commit | 223a0dab88ad13670a9214a70f49ba0c56f4ac01 (patch) | |
tree | 3cfea35dca67b1642fe059428bf2103d7bce57ba | |
parent | 6439702d10a21d26ba7998dd8ccb4e42383acc08 (diff) | |
download | scintilla-mirror-223a0dab88ad13670a9214a70f49ba0c56f4ac01.tar.gz |
Remove unnecessary code.
-rw-r--r-- | cocoa/PlatCocoa.mm | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index 000d5957e..b1de20902 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -944,8 +944,6 @@ static size_t utf8LengthFromLead(unsigned char uch) { void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, int *positions) { CFStringEncoding encoding = EncodingFromCharacterSet(unicodeMode, FontCharacterSet(font_)); - for (int i = 0; i < len; i++) - positions [i] = 0; textLayout->setText (reinterpret_cast<const UInt8*>(s), len, encoding, *reinterpret_cast<QuartzTextStyle*>(font_.GetID())); CTLineRef mLine = textLayout->getCTLine(); |