Remove unused trait

This commit is contained in:
Janus
2021-10-23 01:37:39 -04:00
parent 4c116ec609
commit ab9e6657fa

View File

@@ -358,7 +358,6 @@ impl BtcClient {
async fn handle_subscribe_request(
self: Arc<Self>,
//tx: impl Watchable + Send + 'static,
btc_keys: Account,
drk_pub_key: jubjub::SubgroupPoint,
) -> BtcResult<()> {
@@ -771,21 +770,6 @@ impl fmt::Display for ScriptStatus {
}
}
}
pub trait Watchable {
fn id(&self) -> Txid;
fn script(&self) -> Script;
}
impl Watchable for (Txid, Script) {
fn id(&self) -> Txid {
self.0
}
fn script(&self) -> Script {
self.1.clone()
}
}
impl Encodable for bitcoin::Transaction {
fn encode<S: std::io::Write>(&self, s: S) -> Result<usize> {
let tx = self.serialize();