Skip to content

Commit 5173f10

Browse files
authored
Merge pull request #11925 from github/alexdenisov/swift-drop-dead-code
Swift: drop dead code
2 parents e26e83b + 35620c4 commit 5173f10

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

swift/extractor/infra/SwiftDispatcher.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -355,19 +355,6 @@ class SwiftDispatcher {
355355
return false;
356356
}
357357

358-
static std::filesystem::path getFilePath(std::string_view path) {
359-
// TODO: this needs more testing
360-
// TODO: check canonicalization of names on a case insensitive filesystems
361-
// TODO: make symlink resolution conditional on CODEQL_PRESERVE_SYMLINKS=true
362-
std::error_code ec;
363-
auto ret = std::filesystem::canonical(path, ec);
364-
if (ec) {
365-
std::cerr << "Cannot get real path: " << std::quoted(path) << ": " << ec.message() << "\n";
366-
return {};
367-
}
368-
return ret;
369-
}
370-
371358
virtual void visit(const swift::Decl* decl) = 0;
372359
virtual void visit(const swift::Stmt* stmt) = 0;
373360
virtual void visit(const swift::StmtCondition* cond) = 0;

0 commit comments

Comments
 (0)