fix(codec/context): remove thread_safe_callbacks, removed in 6.0

This commit is contained in:
tilpner
2023-05-24 17:22:59 +02:00
committed by Till Höppner
parent 20aaf8422b
commit 962e44d855
2 changed files with 0 additions and 11 deletions
-2
View File
@@ -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,
}
}
}
-9
View File
@@ -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,
}
}
}