/* * 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 "EmptyBackingStore.h" #include #include "eden/fs/model/Blob.h" #include "eden/fs/model/Hash.h" #include "eden/fs/model/Tree.h" using folly::Future; using folly::makeFuture; using std::unique_ptr; namespace facebook { namespace eden { EmptyBackingStore::EmptyBackingStore() {} EmptyBackingStore::~EmptyBackingStore() {} Future> EmptyBackingStore::getTree(const Hash& /* id */) { return makeFuture>(std::domain_error("empty backing store")); } Future> EmptyBackingStore::getBlob(const Hash& /* id */) { return makeFuture>(std::domain_error("empty backing store")); } Future> EmptyBackingStore::getTreeForCommit( const Hash& /* commitID */) { return makeFuture>(std::domain_error("empty backing store")); } } // namespace eden } // namespace facebook