mononoke: remove unused method

Reviewed By: krallin

Differential Revision: D19128891

fbshipit-source-id: 64519df4ce2dde503939544fe0ecc131b779bf7f
This commit is contained in:
Stanislau Hlebik 2019-12-16 15:12:21 -08:00 committed by Facebook Github Bot
parent 60f6f61d0d
commit 9cc161fae5

View File

@ -874,27 +874,6 @@ impl BlobRepo {
bonsai_cs_id.load(ctx, &self.blobstore).from_err().boxify()
}
// TODO(stash): make it accept ChangesetId
pub fn get_generation_number(
&self,
ctx: CoreContext,
cs: HgChangesetId,
) -> impl Future<Item = Option<Generation>, Error = Error> {
STATS::get_generation_number.add_value(1);
let repo = self.clone();
let repoid = self.repoid.clone();
self.get_bonsai_from_hg(ctx.clone(), cs)
.and_then(move |maybebonsai| match maybebonsai {
Some(bonsai) => repo
.changesets
.get(ctx, repoid, bonsai)
.map(|res| res.map(|res| Generation::new(res.gen)))
.left_future(),
None => Ok(None).into_future().right_future(),
})
}
// TODO(stash): rename to get_generation_number
pub fn get_generation_number_by_bonsai(
&self,