Remove unsued types (#14916)

# Description

`Type::Block` and `Type::Signature` do not correspond to any `Value`
cases and should be able to be removed.
This commit is contained in:
Ian Manske
2025-01-26 04:30:58 +00:00
committed by GitHub
parent e3e2554b3d
commit c783b07d58
6 changed files with 7 additions and 20 deletions

View File

@ -353,7 +353,6 @@ fn nu_value_to_sqlite_type(val: &Value) -> Result<&'static str, ShellError> {
// intentionally enumerated so that any future types get handled
Type::Any
| Type::Block
| Type::CellPath
| Type::Closure
| Type::Custom(_)
@ -361,7 +360,6 @@ fn nu_value_to_sqlite_type(val: &Value) -> Result<&'static str, ShellError> {
| Type::List(_)
| Type::Range
| Type::Record(_)
| Type::Signature
| Type::Glob
| Type::Table(_) => Err(ShellError::OnlySupportsThisInputType {
exp_input_type: "sql".into(),