Skip to content

Commit 9f5bf22

Browse files
author
Harlan Haskins
authored
Merge pull request #22435 from harlanhaskins/oops
[ParseableInterface] Remove some accidentally-committed code
2 parents 2415111 + 17821b6 commit 9f5bf22

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

include/swift/Frontend/ParseableInterfaceSupport.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
#include "swift/Basic/LLVM.h"
1717
#include "swift/Serialization/SerializedModuleLoader.h"
18-
#include "llvm/ADT/DenseMap.h"
19-
#include "llvm/Support/Errc.h"
2018
#include "llvm/Support/Regex.h"
2119

2220
namespace swift {
@@ -31,25 +29,6 @@ struct ParseableInterfaceOptions {
3129
std::string ParseableInterfaceFlags;
3230
};
3331

34-
class PrebuiltModuleCache {
35-
StringRef cacheDir;
36-
llvm::DenseMap<StringRef, uint64_t> hashedContents;
37-
PrebuiltModuleCache(StringRef cacheDir): cacheDir(cacheDir) {}
38-
39-
std::error_code loadHashes();
40-
public:
41-
static llvm::ErrorOr<PrebuiltModuleCache>
42-
loadFromDirectory(StringRef directory);
43-
44-
StringRef getDirectory() { return cacheDir; }
45-
46-
Optional<uint64_t> getInterfaceHash(StringRef moduleName) {
47-
auto it = hashedContents.find(moduleName);
48-
if (it == hashedContents.end()) return None;
49-
return it->second;
50-
}
51-
};
52-
5332
llvm::Regex getSwiftInterfaceFormatVersionRegex();
5433
llvm::Regex getSwiftInterfaceModuleFlagsRegex();
5534

0 commit comments

Comments
 (0)