Skip to content

Commit 5cdfcbb

Browse files
committed
Remove unused ID encoding functions from SwiftLookupTable
1 parent 784ccb2 commit 5cdfcbb

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/ClangImporter/SwiftLookupTable.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -273,20 +273,6 @@ class SwiftLookupTable {
273273
return bits | 0x01;
274274
}
275275

276-
/// Encode a declaration ID as an entry in the table.
277-
static uintptr_t encodeDeclID(clang::serialization::DeclID id) {
278-
auto upper = static_cast<uintptr_t>(id) << 2;
279-
assert(upper >> 2 == id);
280-
return upper | 0x02;
281-
}
282-
283-
/// Encode a macro ID as an entry in the table.
284-
static uintptr_t encodeMacroID(clang::serialization::MacroID id) {
285-
auto upper = static_cast<uintptr_t>(id) << 2;
286-
assert(upper >> 2 == id);
287-
return upper | 0x02 | 0x01;
288-
}
289-
290276
private:
291277
/// A table mapping from the base name of Swift entities to all of
292278
/// the C entities that have that name, in all contexts.

0 commit comments

Comments
 (0)