Skip to content

Commit 6ffad06

Browse files
stepanchegfacebook-github-bot
authored andcommitted
Remove Ty::name_deprecated
Summary: No longer needed. Reviewed By: ianlevesque Differential Revision: D48936054 fbshipit-source-id: 6766dd8d6ffb643b5090809ac4fc89cc32fa72c5
1 parent 0f54f45 commit 6ffad06

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

starlark/src/typing/ty.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,6 @@ impl Ty {
207207
}
208208
}
209209

210-
/// Create a named type.
211-
///
212-
/// This function is deprecated because types should be migrated to either
213-
/// types based on `StarlarkValue` or `TyCustom`.
214-
pub fn name_deprecated(name: &str) -> Self {
215-
Self::name(name)
216-
}
217-
218210
/// Turn a type back into a name, potentially erasing some structure.
219211
/// E.g. the type `[bool]` would return `list`.
220212
/// Types like [`Ty::any`] will return `None`.

0 commit comments

Comments
 (0)