Skip to content

Commit e29d129

Browse files
committed
Remove deprecated raw feature
1 parent ff1c6c1 commit e29d129

File tree

2 files changed

+0
-53
lines changed

2 files changed

+0
-53
lines changed

Cargo.toml

-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ license = "MPL-2.0"
2323
edition = "2018"
2424
rust-version = "1.46"
2525

26-
[features]
27-
# This feature flag is kept around for SemVer compatibility, but does not serve
28-
# any useful purpose since triple-buffer 5.0.6.
29-
raw = []
30-
3126
[badges]
3227
maintenance = { status = "passively-maintained" }
3328

src/lib.rs

-48
Original file line numberDiff line numberDiff line change
@@ -290,30 +290,6 @@ impl<T: Send> Input<T> {
290290
// Tell whether we have overwritten unread data
291291
former_back_info & BACK_DIRTY_BIT != 0
292292
}
293-
294-
/// Deprecated alias to `input_buffer()`, please use that method instead
295-
#[cfg(any(feature = "raw", test))]
296-
#[deprecated(
297-
since = "5.0.5",
298-
note = "The \"raw\" feature is deprecated as the performance \
299-
optimization that motivated it turned out to be incorrect. \
300-
All functionality is now available without using feature flags."
301-
)]
302-
pub fn raw_input_buffer(&mut self) -> &mut T {
303-
self.input_buffer()
304-
}
305-
306-
/// Deprecated alias to `publish()`, please use that method instead
307-
#[cfg(any(feature = "raw", test))]
308-
#[deprecated(
309-
since = "5.0.5",
310-
note = "The \"raw\" feature is deprecated as the performance \
311-
optimization that motivated it turned out to be incorrect. \
312-
All functionality is now available without using feature flags."
313-
)]
314-
pub fn raw_publish(&mut self) -> bool {
315-
self.publish()
316-
}
317293
}
318294

319295
/// Consumer interface to the triple buffer
@@ -427,30 +403,6 @@ impl<T: Send> Output<T> {
427403
// Tell whether an update was carried out
428404
updated
429405
}
430-
431-
/// Deprecated alias to `output_buffer()`, please use that method instead
432-
#[cfg(any(feature = "raw", test))]
433-
#[deprecated(
434-
since = "5.0.5",
435-
note = "The \"raw\" feature is deprecated as the performance \
436-
optimization that motivated it turned out to be incorrect. \
437-
All functionality is now available without using feature flags."
438-
)]
439-
pub fn raw_output_buffer(&mut self) -> &mut T {
440-
self.output_buffer()
441-
}
442-
/// Deprecated alias to `update()`, please use that method instead
443-
#[cfg(any(feature = "raw", test))]
444-
#[deprecated(
445-
since = "5.0.5",
446-
note = "The \"raw\" feature is deprecated as the performance \
447-
optimization that motivated it turned out to be incorrect. \
448-
All functionality is now available without using feature flags."
449-
)]
450-
#[cfg(any(feature = "raw", test))]
451-
pub fn raw_update(&mut self) -> bool {
452-
self.update()
453-
}
454406
}
455407

456408
/// Triple buffer shared state

0 commit comments

Comments
 (0)