Skip to content

Commit 0a71082

Browse files
[NFC][CAS] Cleanup CAS-based file system initialization
1 parent 17b3b00 commit 0a71082

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/Frontend/CachingUtils.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,6 @@ Expected<IntrusiveRefCntPtr<vfs::FileSystem>>
380380
createCASFileSystem(ObjectStore &CAS, ArrayRef<std::string> FSRoots,
381381
ArrayRef<std::string> IncludeTrees) {
382382
assert(!FSRoots.empty() || !IncludeTrees.empty() && "no root ID provided");
383-
if (FSRoots.size() == 1 && IncludeTrees.empty()) {
384-
auto ID = CAS.parseID(FSRoots.front());
385-
if (!ID)
386-
return ID.takeError();
387-
auto Ref = CAS.getReference(*ID);
388-
if (!Ref)
389-
return createCASObjectNotFoundError(*ID);
390-
}
391-
392383
auto NewRoot = mergeCASFileSystem(CAS, FSRoots);
393384
if (!NewRoot)
394385
return NewRoot.takeError();

0 commit comments

Comments
 (0)