store: Remove dead `ToSql` impl
use diesel::pg::Pg;
use diesel::serialize::{self, Output, ToSql};
-use diesel::sql_types::{Binary, Bool, Integer, Numeric, Text};
+use diesel::sql_types::{Binary, Bool, Integer, Text};
use std::io::Write;
use std::str::FromStr;
@@ -33,19 +33,6 @@ impl ToSql<Integer, Pg> for SqlValue {
}
}
-// Used only for JSONB support
-impl ToSql<Numeric, Pg> for SqlValue {
- fn to_sql<W: Write>(&self, out: &mut Output<W, Pg>) -> serialize::Result {
- match &self.0 {
- Value::BigDecimal(d) => <_ as ToSql<Numeric, Pg>>::to_sql(&d, out),
- Value::BigInt(number) => {
- <_ as ToSql<Numeric, Pg>>::to_sql(&scalar::BigDecimal::new(number.clone(), 0), out)
- }
- _ => panic!("Failed to convert attribute value to bigint in SQL"),
- }
- }
-}
-
impl ToSql<Text, Pg> for SqlValue {
fn to_sql<W: Write>(&self, out: &mut Output<W, Pg>) -> serialize::Result {
match self.0 {
