Skip to content

Commit e3c5eb7

Browse files
committed
IDE: Remove unused function
1 parent 167f94f commit e3c5eb7

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

lib/IDE/CodeCompletion.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -285,32 +285,6 @@ void getSwiftDocKeyword(const Decl* D, CommandWordsPairs &Words) {
285285
} // end namespace markup
286286
} // end namespace swift
287287

288-
static bool shouldHideDeclFromCompletionResults(const ValueDecl *D) {
289-
// Hide private stdlib declarations.
290-
if (D->isPrivateStdlibDecl(/*treatNonBuiltinProtocolsAsPublic*/false) ||
291-
// ShowInInterfaceAttr is for decls to show in interface as exception but
292-
// they are not intended to be used directly.
293-
D->getAttrs().hasAttribute<ShowInInterfaceAttr>())
294-
return true;
295-
296-
if (AvailableAttr::isUnavailable(D))
297-
return true;
298-
299-
if (auto *ClangD = D->getClangDecl()) {
300-
if (ClangD->hasAttr<clang::SwiftPrivateAttr>())
301-
return true;
302-
}
303-
304-
// Hide editor placeholders.
305-
if (D->getBaseName().isEditorPlaceholder())
306-
return true;
307-
308-
if (!D->isUserAccessible())
309-
return true;
310-
311-
return false;
312-
}
313-
314288
using DeclFilter = std::function<bool(ValueDecl *, DeclVisibilityKind)>;
315289
static bool DefaultFilter(ValueDecl* VD, DeclVisibilityKind Kind) {
316290
return true;

0 commit comments

Comments
 (0)