Skip to content

Commit c03e899

Browse files
authored
remove unused NotSendSyncAcrossAllPlatforms struct and impl (RustAudio#1002)
1 parent c03f694 commit c03e899

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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)