Skip to content

Commit 735077c

Browse files
wgibbs-rsroderickvd
authored andcommitted
remove unused NotSendSyncAcrossAllPlatforms struct and impl (RustAudio#1002)
1 parent e226b65 commit 735077c

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/platform/mod.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -747,19 +747,3 @@ mod platform_impl {
747747
.into()
748748
}
749749
}
750-
751-
// The following zero-sized types are for applying Send/Sync restrictions to ensure
752-
// consistent behaviour across different platforms. These verbosely named types are used
753-
// (rather than using the markers directly) in the hope of making the compile errors
754-
// slightly more helpful.
755-
//
756-
// TODO: Remove these in favour of using negative trait bounds if they stabilise.
757-
758-
// A marker used to remove the `Send` and `Sync` traits.
759-
struct NotSendSyncAcrossAllPlatforms(std::marker::PhantomData<*mut ()>);
760-
761-
impl Default for NotSendSyncAcrossAllPlatforms {
762-
fn default() -> Self {
763-
NotSendSyncAcrossAllPlatforms(std::marker::PhantomData)
764-
}
765-
}

0 commit comments

Comments
 (0)