Skip to content

Commit 70a8171

Browse files
stepanchegfacebook-github-bot
authored andcommitted
Remove unused operations from AsStarlarkValue
Summary: Dead code. Reviewed By: ndmitchell Differential Revision: D30893200 fbshipit-source-id: e5993f496616c47d03a310dbac92ba0452ed7565
1 parent 3247ed4 commit 70a8171

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

starlark/src/values/traits.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,27 +47,17 @@ use std::{
4747

4848
/// Helper trait used in [`StarlarkValue`] - has a single global implementation.
4949
pub trait AsStarlarkValue<'v> {
50-
fn as_starlark_value(&self) -> &dyn StarlarkValue<'v>;
5150
fn as_dyn_any(&self) -> &dyn AnyLifetime<'v>;
5251
fn as_debug(&self) -> &dyn Debug;
53-
54-
fn type_name(&self) -> &'static str;
5552
}
5653

5754
impl<'v, T: StarlarkValue<'v>> AsStarlarkValue<'v> for T {
58-
fn as_starlark_value(&self) -> &dyn StarlarkValue<'v> {
59-
self
60-
}
6155
fn as_dyn_any(&self) -> &dyn AnyLifetime<'v> {
6256
self
6357
}
6458
fn as_debug(&self) -> &dyn Debug {
6559
self
6660
}
67-
68-
fn type_name(&self) -> &'static str {
69-
std::any::type_name::<T>()
70-
}
7161
}
7262

7363
/// Called by the garbage collection, and must walk over every contained `Value` in the type.

0 commit comments

Comments
 (0)