Skip to content

Commit

Permalink
Remove not required code.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzhiwei147 committed Oct 19, 2017
1 parent 13994e6 commit 249e7f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
Binary file not shown.
26 changes: 0 additions & 26 deletions JSONTools/Application/SourceEditorCommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,4 @@ @implementation SourceEditorCommand
@"format.json.prettity": jsonHandler
};
}

//- (void)performCommandWithInvocation:(XCSourceEditorCommandInvocation *)invocation completionHandler:(void (^)(NSError * _Nullable nilOrError))completionHandler {
//
// XCSourceTextBuffer *buffer = invocation.buffer;
//
// // get all editor content
// NSString *editorContent = buffer.completeBuffer;
//
// NSError *error = nil;
// id jsonValue = [editorContent ar_jsonValueWithError:&error];
// if (!jsonValue) {
// completionHandler(error);
// return;
// }
//
// NSString *formatedString = [jsonValue ar_jsonRepresentationWithOptions:NSJSONWritingPrettyPrinted error:&error];
// if (!formatedString) {
// completionHandler(error);
// return;
// }
//
// buffer.completeBuffer = formatedString;
//
// completionHandler(nil);
//}

@end

0 comments on commit 249e7f2

Please sign in to comment.