diff --git a/types/src/json/block.rs b/types/src/json/block.rs index 7f1c697..f53be50 100644 --- a/types/src/json/block.rs +++ b/types/src/json/block.rs @@ -9,9 +9,6 @@ use crate::json::output::Output; /// /// Used in: /// - [`/get_block` -> `json`](https://www.getmonero.org/resources/developer-guides/daemon-rpc.html#get_block) -/// -/// # TODO -/// The epee implementation on this struct panics. #[derive(Clone, Default, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct Block { @@ -24,34 +21,6 @@ pub struct Block { pub tx_hashes: Vec, } -#[cfg(feature = "epee")] -impl cuprate_epee_encoding::EpeeObjectBuilder for () { - fn add_field( - &mut self, - _: &str, - _: &mut B, - ) -> cuprate_epee_encoding::error::Result { - todo!() - } - - fn finish(self) -> cuprate_epee_encoding::error::Result { - todo!() - } -} - -#[cfg(feature = "epee")] -impl cuprate_epee_encoding::EpeeObject for Block { - type Builder = (); - - fn number_of_fields(&self) -> u64 { - todo!() - } - - fn write_fields(self, _: &mut B) -> cuprate_epee_encoding::error::Result<()> { - todo!() - } -} - /// [`Block::miner_tx`]. #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] diff --git a/types/src/json/tx.rs b/types/src/json/tx.rs index 417b4c7..7d60f41 100644 --- a/types/src/json/tx.rs +++ b/types/src/json/tx.rs @@ -15,9 +15,6 @@ use crate::json::output::Output; /// Used in: /// - [`/get_transactions` -> `txs.as_json`](https://www.getmonero.org/resources/developer-guides/daemon-rpc.html#get_transactions) /// - [`/get_transaction_pool` -> `tx_json`](https://www.getmonero.org/resources/developer-guides/daemon-rpc.html#get_transaction_pool) -/// -/// # TODO -/// The epee implementation on this struct panics. #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[serde(untagged)] @@ -37,34 +34,6 @@ pub enum Transaction { }, } -#[cfg(feature = "epee")] -impl cuprate_epee_encoding::EpeeObjectBuilder for () { - fn add_field( - &mut self, - _: &str, - _: &mut B, - ) -> cuprate_epee_encoding::error::Result { - todo!() - } - - fn finish(self) -> cuprate_epee_encoding::error::Result { - todo!() - } -} - -#[cfg(feature = "epee")] -impl cuprate_epee_encoding::EpeeObject for Transaction { - type Builder = (); - - fn number_of_fields(&self) -> u64 { - todo!() - } - - fn write_fields(self, _: &mut B) -> cuprate_epee_encoding::error::Result<()> { - todo!() - } -} - /// [`Transaction::V1::prefix`] & [`Transaction::V2::prefix`]. #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]