mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-12-08 05:05:40 +00:00
Remove the unused TextScriptEncoding implementation[ci skip]
This commit is contained in:
parent
247fbf2936
commit
acc365451c
|
|
@ -176,22 +176,6 @@ impl From<TextScriptEncoding> for &'static encoding_rs::Encoding {
|
|||
}
|
||||
}
|
||||
|
||||
impl TextScriptEncoding {
|
||||
pub fn invalid_encoding(encoding: TextScriptEncoding, state: &SharedGameState) -> bool {
|
||||
if state.loc.encoding.is_some_and(|e| e == encoding) {
|
||||
return true;
|
||||
}
|
||||
|
||||
let required_encoding = if (state.loc.code == "jp" || state.loc.code == "en") && state.constants.is_base() {
|
||||
TextScriptEncoding::ShiftJIS
|
||||
} else {
|
||||
TextScriptEncoding::UTF8
|
||||
};
|
||||
|
||||
encoding != required_encoding
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
|
||||
#[repr(u8)]
|
||||
pub enum TextScriptLine {
|
||||
|
|
|
|||
Loading…
Reference in a new issue