diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2022-05-14 22:43:30 +0900 |
---|---|---|
committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2022-05-14 22:44:29 +0900 |
commit | f35bbb949fea54cc93e888c2ad9fb01182545632 (patch) | |
tree | b33377c5f7b62c59028749b6348ad924aa93f42d | |
parent | bc2306bf932711d7f35a0bb0fd84ef59d9902f6b (diff) | |
download | hinoko-rs-f35bbb949fea54cc93e888c2ad9fb01182545632.tar.gz |
hinoko: remove useless subclass
FwIsoResourceAutoImpl and FwIsoResourceOnceImpl are blank trait, therefore
useless.
This commit remove them.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
-rw-r--r-- | hinoko/src/subclass/fw_iso_resource_auto.rs | 7 | ||||
-rw-r--r-- | hinoko/src/subclass/fw_iso_resource_once.rs | 7 | ||||
-rw-r--r-- | hinoko/src/subclass/mod.rs | 7 |
3 files changed, 1 insertions, 20 deletions
diff --git a/hinoko/src/subclass/fw_iso_resource_auto.rs b/hinoko/src/subclass/fw_iso_resource_auto.rs deleted file mode 100644 index 4d6789d..0000000 --- a/hinoko/src/subclass/fw_iso_resource_auto.rs +++ /dev/null @@ -1,7 +0,0 @@ -// SPDX-License-Identifier: MIT - -use super::*; - -pub trait FwIsoResourceAutoImpl: FwIsoResourceImpl {} - -unsafe impl<T: FwIsoResourceAutoImpl> IsSubclassable<T> for FwIsoResourceAuto {} diff --git a/hinoko/src/subclass/fw_iso_resource_once.rs b/hinoko/src/subclass/fw_iso_resource_once.rs deleted file mode 100644 index 202d9e8..0000000 --- a/hinoko/src/subclass/fw_iso_resource_once.rs +++ /dev/null @@ -1,7 +0,0 @@ -// SPDX-License-Identifier: MIT - -use super::*; - -pub trait FwIsoResourceOnceImpl: FwIsoResourceImpl {} - -unsafe impl<T: FwIsoResourceOnceImpl> IsSubclassable<T> for FwIsoResourceOnce {} diff --git a/hinoko/src/subclass/mod.rs b/hinoko/src/subclass/mod.rs index 15808ea..3abd3ab 100644 --- a/hinoko/src/subclass/mod.rs +++ b/hinoko/src/subclass/mod.rs @@ -1,20 +1,15 @@ // SPDX-License-Identifier: MIT pub mod fw_iso_ctx; +pub mod fw_iso_resource; pub mod fw_iso_rx_multiple; pub mod fw_iso_rx_single; pub mod fw_iso_tx; -pub mod fw_iso_resource; -pub mod fw_iso_resource_auto; -pub mod fw_iso_resource_once; - pub mod prelude { pub use { super::fw_iso_ctx::{FwIsoCtxImpl, FwIsoCtxImplExt}, super::fw_iso_resource::{FwIsoResourceImpl, FwIsoResourceImplExt}, - super::fw_iso_resource_auto::FwIsoResourceAutoImpl, - super::fw_iso_resource_once::FwIsoResourceOnceImpl, super::fw_iso_rx_multiple::{FwIsoRxMultipleImpl, FwIsoRxMultipleImplExt}, super::fw_iso_rx_single::{FwIsoRxSingleImpl, FwIsoRxSingleImplExt}, super::fw_iso_tx::{FwIsoTxImpl, FwIsoTxImplExt}, |