Skip to content

Commit

Permalink
Fix issue caused by rebase merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
andykorth committed Feb 23, 2015
1 parent 4df4c2c commit 414d2ce
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions SpriteBuilder/ccBuilder/CCBProjectCreator.m
Original file line number Diff line number Diff line change
Expand Up @@ -202,30 +202,6 @@ - (void)replace:(NSDictionary *)substitutions in:(NSString *)fileName
}
}

- (void)replace:(NSDictionary *)substitutions in:(NSString *)fileName
{
NSFileManager *fm = [NSFileManager defaultManager];
NSString *resultFilename = [NSString stringWithString:fileName];

for( NSString*key in substitutions.allKeys)
{
resultFilename = [resultFilename stringByReplacingOccurrencesOfString:key withString:substitutions[key]];
}

BOOL renameRequired = ![resultFilename isEqualToString:fileName];
if(renameRequired)
{
NSError *error;
[fm moveItemAtPath:fileName toPath:resultFilename error:&error];
NSAssert(!error, @"error occurred renaming %@ - %@", fileName, [error description]);
}

for( NSString*key in substitutions.allKeys)
{
[self setName:substitutions[key] inFile:resultFilename search:key];
}
}

- (void)setName:(NSString *)name inFile:(NSString *)fileName search:(NSString *)searchStr
{
NSMutableData *fileData = [NSMutableData dataWithContentsOfFile:fileName];
Expand Down

0 comments on commit 414d2ce

Please sign in to comment.