Skip to content

Commit c35c9ec

Browse files
committed
[SourceKit/CodeCompletion] Remove unnecessary sorting in completion
codeCompleteOpen() has own sorting algorithm, codeComplete() calls this sortCompletionResults() in its callback. So this pre-sorting is completely unnecessary.
1 parent fb76496 commit c35c9ec

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/SourceKit/lib/SwiftLang/SwiftCompletion.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ struct SwiftCodeCompletionConsumer
100100

101101
void handleResults(MutableArrayRef<CodeCompletionResult *> Results) override {
102102
assert(swiftContext.swiftASTContext);
103-
CodeCompletionContext::sortCompletionResults(Results);
104103
handleResultsImpl(Results, swiftContext);
105104
}
106105
};

0 commit comments

Comments
 (0)