mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
d45b2711a2
Summary: getTreeForManifest is no longer called, so remove it. Reviewed By: genevievehelsel Differential Revision: D28306796 fbshipit-source-id: e51a32fa7d75c54b2e3525e88c162247b4496560
50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
/*
|
|
* 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 <folly/futures/Future.h>
|
|
#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<unique_ptr<Tree>> EmptyBackingStore::getTree(
|
|
const Hash& /* id */,
|
|
ObjectFetchContext& /* context */) {
|
|
return makeSemiFuture<unique_ptr<Tree>>(
|
|
std::domain_error("empty backing store"));
|
|
}
|
|
|
|
SemiFuture<unique_ptr<Blob>> EmptyBackingStore::getBlob(
|
|
const Hash& /* id */,
|
|
ObjectFetchContext& /* context */) {
|
|
return makeSemiFuture<unique_ptr<Blob>>(
|
|
std::domain_error("empty backing store"));
|
|
}
|
|
|
|
SemiFuture<unique_ptr<Tree>> EmptyBackingStore::getTreeForCommit(
|
|
const Hash& /* commitID */,
|
|
ObjectFetchContext& /* context */) {
|
|
return makeSemiFuture<unique_ptr<Tree>>(
|
|
std::domain_error("empty backing store"));
|
|
}
|
|
|
|
} // namespace eden
|
|
} // namespace facebook
|