From b41bfc713409dd447993a642c9ce588ac610961b Mon Sep 17 00:00:00 2001 From: Tim 'Piepmatz' Hesse Date: Mon, 10 Jun 2024 12:50:34 +0200 Subject: [PATCH] removed try_into_value_unknown --- crates/nu-protocol/src/value/into_value.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/nu-protocol/src/value/into_value.rs b/crates/nu-protocol/src/value/into_value.rs index 6d9f805b0b..adb8cdc487 100644 --- a/crates/nu-protocol/src/value/into_value.rs +++ b/crates/nu-protocol/src/value/into_value.rs @@ -181,13 +181,6 @@ pub trait TryIntoValue: Sized { // TODO: instead of ShellError, maybe we could have a IntoValueError that implements Into /// Tries to convert the given value into a `Value`. fn try_into_value(self, span: Span) -> Result; - - /// Tries to convert the given value to a `Value` with an unknown `Span`. - /// - /// Internally this simply calls [`Span::unknown`] for the `span`. - fn try_into_value_unknown(self) -> Result { - Self::try_into_value(self, Span::unknown()) - } } impl TryIntoValue for T