/* * Copyright (c) Facebook, Inc. and its affiliates. * * This software may be used and distributed according to the terms of the * GNU General Public License version 2. */ #include "eden/fs/store/EmptyBackingStore.h" #include #include "eden/fs/model/Blob.h" #include "eden/fs/model/Hash.h" #include "eden/fs/model/Tree.h" #include "eden/fs/store/ObjectFetchContext.h" using folly::makeSemiFuture; using folly::SemiFuture; using std::unique_ptr; namespace facebook { namespace eden { EmptyBackingStore::EmptyBackingStore() {} EmptyBackingStore::~EmptyBackingStore() {} SemiFuture> EmptyBackingStore::getTree( const Hash& /* id */, ObjectFetchContext& /* context */) { return makeSemiFuture>( std::domain_error("empty backing store")); } SemiFuture> EmptyBackingStore::getBlob( const Hash& /* id */, ObjectFetchContext& /* context */) { return makeSemiFuture>( std::domain_error("empty backing store")); } SemiFuture> EmptyBackingStore::getTreeForCommit( const Hash& /* commitID */, ObjectFetchContext& /* context */) { return makeSemiFuture>( std::domain_error("empty backing store")); } } // namespace eden } // namespace facebook