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;
pub mod util;
pub mod tx;
pub mod credit;
pub mod engine;
pub mod engine_plugin_credit;
mod util;
mod tx;
mod credit;
mod engine;
mod engine_plugin_credit;
mod cmd;
mod cmd_default;

View File

@@ -37,11 +37,7 @@ impl Transaction {
signature: format!("{}", sign),
})
}
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> {
serde_json::from_str(&self.body).map_err(|e| e.into())
}