Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sophiebits/32629 to your computer and use it in GitHub Desktop.
Save sophiebits/32629 to your computer and use it in GitHub Desktop.
From e6b562555196947752ccced8434d93523d4bebde Mon Sep 17 00:00:00 2001
From: Ben Alpert <spicyjalapeno@gmail.com>
Date: Fri, 5 Dec 2008 22:50:49 -0700
Subject: [PATCH] remove double path init in drawCircleInRect:
---
PBGitRevisionCell.m | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/PBGitRevisionCell.m b/PBGitRevisionCell.m
index 0d3ce9c..83bf906 100644
--- a/PBGitRevisionCell.m
+++ b/PBGitRevisionCell.m
@@ -65,8 +65,7 @@
NSRect oval = { columnOrigin.x - 5, columnOrigin.y + r.size.height * 0.5 - 5, 10, 10};
- NSBezierPath * path = [NSBezierPath bezierPath];
- path = [NSBezierPath bezierPathWithOvalInRect:oval];
+ NSBezierPath * path = [NSBezierPath bezierPathWithOvalInRect:oval];
[[NSColor blackColor] set];
[path fill];
--
1.5.4.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment