From 2f033aa996e78ed6a902e555d99c12537e591187 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 25 Mar 2022 21:11:17 +0000 Subject: [PATCH] Remove unused functionality --- lib/src/sql/value/mod.rs | 1 - lib/src/sql/value/single.rs | 13 ------------- 2 files changed, 14 deletions(-) delete mode 100644 lib/src/sql/value/single.rs diff --git a/lib/src/sql/value/mod.rs b/lib/src/sql/value/mod.rs index dffd7f7f..744029e7 100644 --- a/lib/src/sql/value/mod.rs +++ b/lib/src/sql/value/mod.rs @@ -18,5 +18,4 @@ mod patch; mod pick; mod replace; mod set; -mod single; mod value; diff --git a/lib/src/sql/value/single.rs b/lib/src/sql/value/single.rs deleted file mode 100644 index a3a95dab..00000000 --- a/lib/src/sql/value/single.rs +++ /dev/null @@ -1,13 +0,0 @@ -use crate::sql::value::Value; - -impl Value { - pub fn single(&self) -> &Self { - match self { - Value::Array(v) => match v.value.first() { - None => &Value::None, - Some(v) => v, - }, - v => v, - } - } -}