diff --git a/src/codec/context.rs b/src/codec/context.rs index d4432aa..bbaae35 100644 --- a/src/codec/context.rs +++ b/src/codec/context.rs @@ -96,7 +96,6 @@ impl Context { unsafe { (*self.as_mut_ptr()).thread_type = config.kind.into(); (*self.as_mut_ptr()).thread_count = config.count as c_int; - (*self.as_mut_ptr()).thread_safe_callbacks = if config.safe { 1 } else { 0 }; } } @@ -105,7 +104,6 @@ impl Context { threading::Config { kind: threading::Type::from((*self.as_ptr()).active_thread_type), count: (*self.as_ptr()).thread_count as usize, - safe: (*self.as_ptr()).thread_safe_callbacks != 0, } } } diff --git a/src/codec/threading.rs b/src/codec/threading.rs index a71d64f..dc68acf 100644 --- a/src/codec/threading.rs +++ b/src/codec/threading.rs @@ -6,7 +6,6 @@ use crate::ffi::*; pub struct Config { pub kind: Type, pub count: usize, - pub safe: bool, } impl Config { @@ -23,13 +22,6 @@ impl Config { ..Default::default() } } - - pub fn safe(value: bool) -> Self { - Config { - safe: value, - ..Default::default() - } - } } impl Default for Config { @@ -37,7 +29,6 @@ impl Default for Config { Config { kind: Type::None, count: 0, - safe: false, } } }