style: remove unused fn
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user