Skip to content

[Completion] Remove unused DocWords #39084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions include/swift/IDE/CodeCompletion.h
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,6 @@ class CodeCompletionResult {
StringRef SourceFilePath;
StringRef BriefDocComment;
ArrayRef<StringRef> AssociatedUSRs;
ArrayRef<std::pair<StringRef, StringRef>> DocWords;
unsigned TypeDistance : 3;
unsigned DiagnosticSeverity: 3;
StringRef DiagnosticMessage;
Expand Down Expand Up @@ -731,15 +730,13 @@ class CodeCompletionResult {
CodeCompletionResult::NotRecommendedReason NotRecReason,
StringRef BriefDocComment,
ArrayRef<StringRef> AssociatedUSRs,
ArrayRef<std::pair<StringRef, StringRef>> DocWords,
enum ExpectedTypeRelation TypeDistance)
: Kind(ResultKind::Declaration), KnownOperatorKind(0),
SemanticContext(unsigned(SemanticContext)), Flair(unsigned(Flair.toRaw())),
NotRecommended(unsigned(NotRecReason)),
NumBytesToErase(NumBytesToErase), CompletionString(CompletionString),
ModuleName(ModuleName), BriefDocComment(BriefDocComment),
AssociatedUSRs(AssociatedUSRs), DocWords(DocWords),
TypeDistance(TypeDistance) {
AssociatedUSRs(AssociatedUSRs), TypeDistance(TypeDistance) {
assert(AssociatedDecl && "should have a decl");
AssociatedKind = unsigned(getCodeCompletionDeclKind(AssociatedDecl));
IsSystem = getDeclIsSystem(AssociatedDecl);
Expand All @@ -762,7 +759,6 @@ class CodeCompletionResult {
CodeCompletionDiagnosticSeverity diagSeverity,
StringRef DiagnosticMessage, StringRef BriefDocComment,
ArrayRef<StringRef> AssociatedUSRs,
ArrayRef<std::pair<StringRef, StringRef>> DocWords,
ExpectedTypeRelation TypeDistance,
CodeCompletionOperatorKind KnownOperatorKind)
: Kind(ResultKind::Declaration),
Expand All @@ -772,8 +768,7 @@ class CodeCompletionResult {
NumBytesToErase(NumBytesToErase), CompletionString(CompletionString),
ModuleName(ModuleName), SourceFilePath(SourceFilePath),
BriefDocComment(BriefDocComment), AssociatedUSRs(AssociatedUSRs),
DocWords(DocWords), TypeDistance(TypeDistance),
DiagnosticSeverity(unsigned(diagSeverity)),
TypeDistance(TypeDistance), DiagnosticSeverity(unsigned(diagSeverity)),
DiagnosticMessage(DiagnosticMessage) {
AssociatedKind = static_cast<unsigned>(DeclKind);
assert(CompletionString);
Expand Down Expand Up @@ -869,10 +864,6 @@ class CodeCompletionResult {
return AssociatedUSRs;
}

ArrayRef<std::pair<StringRef, StringRef>> getDeclKeywords() const {
return DocWords;
}

void setSourceFilePath(StringRef value) {
SourceFilePath = value;
}
Expand Down
Loading