From ee13abb8e7b2d694bc47a930ccb305429149b8e7 Mon Sep 17 00:00:00 2001 From: Kim Wittenburg Date: Thu, 8 Jan 2015 21:57:42 +0100 Subject: [PATCH] Removed Redundant Comments --- MathKit/MPExpressionLayout.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/MathKit/MPExpressionLayout.m b/MathKit/MPExpressionLayout.m index 0f07b5f..0905031 100644 --- a/MathKit/MPExpressionLayout.m +++ b/MathKit/MPExpressionLayout.m @@ -261,9 +261,7 @@ - (void)draw { - // Get the current context - CGContextRef context = - (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]; + CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]; CGContextSaveGState(context); [[NSColor textColor] set]; @@ -277,12 +275,10 @@ CGContextSetTextMatrix(context, CGAffineTransformIdentity); - // Track the x position and the bounds of the last element CGFloat x = 0; NSRect lastElementBounds = NSMakeRect(0, kMPEmptyBoxYOrigin, kMPEmptyBoxWidth, kMPEmptyBoxHeight); for (NSUInteger index = 0; index < self.expression.countElements; index++) { - // The current element id element = [self.expression elementAtIndex:index]; NSRect elementBounds = [self boundsOfElementAtIndex:index]; @@ -295,7 +291,6 @@ CFRelease(line); } else { - // Let the child layout draw itself MPLayout *layout = [self childLayoutAtIndex:index]; if ([layout isKindOfClass:[MPPowerFunctionLayout class]]) { ((MPPowerFunctionLayout *)layout).baseBounds = lastElementBounds;