Skip to content

Commit

Permalink
Using helper method to get paths from node vector
Browse files Browse the repository at this point in the history
  • Loading branch information
zerodivisi0n committed Nov 21, 2012
1 parent ba150c7 commit f392da9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions FinderExt/FinderExt.m
Expand Up @@ -29,13 +29,7 @@ @implementation MenuItemTarget
- (id)initWithNodes:(const struct TFENodeVector *)vector {
self = [super init];
if (self) {
NSInteger capacity = vector->_end - vector->_begin;
NSMutableArray *files = [[NSMutableArray alloc] initWithCapacity:capacity];
struct TFENode *node;
for (node = vector->_begin; node < vector->_end; ++node) {
[files addObject: [gNodeHelper pathForNode:node]];
}
_files = files;
_files = [[gNodeHelper arrayForNodeVector:vector] retain];
}
return self;
}
Expand Down

0 comments on commit f392da9

Please sign in to comment.