style: remove unused fn

This commit is contained in:
2021-01-01 22:40:41 +08:00
parent bfe461a2b7
commit 2a2d33be2c
2 changed files with 6 additions and 10 deletions

View File

@@ -1,10 +1,10 @@
#[macro_use] extern crate rust_util; #[macro_use] extern crate rust_util;
pub mod util; mod util;
pub mod tx; mod tx;
pub mod credit; mod credit;
pub mod engine; mod engine;
pub mod engine_plugin_credit; mod engine_plugin_credit;
mod cmd; mod cmd;
mod cmd_default; mod cmd_default;

View File

@@ -38,10 +38,6 @@ impl Transaction {
}) })
} }
pub fn from_json(transaction_json: &str) -> XResult<Self> {
serde_json::from_str(transaction_json).map_err(|e| e.into())
}
pub fn parse_body(&self) -> XResult<TransactionBody> { pub fn parse_body(&self) -> XResult<TransactionBody> {
serde_json::from_str(&self.body).map_err(|e| e.into()) serde_json::from_str(&self.body).map_err(|e| e.into())
} }