Can preedit_string get removed?

This commit is contained in:
pentamassiv
2020-10-13 22:24:54 +02:00
parent 2f613ea4c7
commit b8a35530af

View File

@ -54,7 +54,7 @@ pub mod c {
im: *const InputMethod)
{
let imservice = check_imservice(imservice, im).unwrap();
imservice.preedit_string = String::new();
imservice.preedit_string = String::new(); // I don't think this is ever used. Remove it?
imservice.pending = IMProtocolState {
active: true,
..IMProtocolState::default()
@ -344,7 +344,7 @@ pub struct IMService {
pending: IMProtocolState,
current: IMProtocolState, // turn current into an idiomatic representation?
preedit_string: String,
preedit_string: String, // I don't think this is ever used. Remove it?
serial: Wrapping<u32>,
}
@ -366,7 +366,7 @@ impl IMService {
state_manager,
pending: IMProtocolState::default(),
current: IMProtocolState::default(),
preedit_string: String::new(),
preedit_string: String::new(), // I don't think this is ever used. Remove it?
serial: Wrapping(0u32),
});
unsafe {