From 1c960965ef80aa8f7a51ed797368839b52223e2a Mon Sep 17 00:00:00 2001 From: Michele Campeotto Date: Mon, 10 Nov 2014 16:29:45 -0800 Subject: [PATCH] No need to check for items in a set before adding them NSMutableSet makes sure the added objectes are unique. --- Classes/git/PBGitRevList.mm | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Classes/git/PBGitRevList.mm b/Classes/git/PBGitRevList.mm index 1baac9248..160f47078 100644 --- a/Classes/git/PBGitRevList.mm +++ b/Classes/git/PBGitRevList.mm @@ -130,12 +130,6 @@ - (void) addGitObject:(GTObject *)obj toCommitSet:(NSMutableSet *)set NSAssert(commit, @"Can't add nil commit to set"); - for (GTCommit *item in set) { - if ([item.OID isEqual:commit.OID]) { - return; - } - } - [set addObject:commit]; }