mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Gardening] Remove dead code in SerializeDoc.cpp
This commit is contained in:
@@ -710,16 +710,6 @@ writer.write<uint32_t>(data.X.Column);
|
||||
return USRWriter.getNewUSRId(OS.str());
|
||||
}
|
||||
|
||||
LineColumn getLineColumn(SourceManager &SM, SourceLoc Loc) {
|
||||
LineColumn Result;
|
||||
if (Loc.isValid()) {
|
||||
auto LC = SM.getPresumedLineAndColumnForLoc(Loc);
|
||||
Result.Line = LC.first;
|
||||
Result.Column = LC.second;
|
||||
}
|
||||
return Result;
|
||||
}
|
||||
|
||||
Optional<DeclLocationsTableData> getLocData(Decl *D) {
|
||||
auto *File = D->getDeclContext()->getModuleScopeContext();
|
||||
auto Locs = cast<FileUnit>(File)->getBasicLocsForDecl(D);
|
||||
|
||||
Reference in New Issue
Block a user