mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 18:31:37 +03:00
Remove unused {cancel,finish}_composition
methods
This commit is contained in:
parent
481078ae22
commit
a4ceae3cf2
@ -445,18 +445,6 @@ impl InputHandler for WindowInputHandler {
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
// TODO - do these need to be handled separately?
|
||||
|
||||
fn cancel_composition(&mut self) {
|
||||
println!("cancel_composition()");
|
||||
self.unmark_text();
|
||||
}
|
||||
|
||||
fn finish_composition(&mut self) {
|
||||
println!("finish_composition()");
|
||||
self.unmark_text();
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
|
@ -102,8 +102,6 @@ pub trait InputHandler {
|
||||
);
|
||||
fn marked_text_range(&self) -> Option<Range<usize>>;
|
||||
fn unmark_text(&mut self);
|
||||
fn cancel_composition(&mut self);
|
||||
fn finish_composition(&mut self);
|
||||
}
|
||||
|
||||
pub trait Window: WindowContext {
|
||||
|
@ -1097,7 +1097,7 @@ extern "C" fn set_marked_text(
|
||||
}
|
||||
|
||||
extern "C" fn unmark_text(this: &Object, _: Sel) {
|
||||
with_input_handler(this, |input_handler| input_handler.finish_composition());
|
||||
with_input_handler(this, |input_handler| input_handler.unmark_text());
|
||||
}
|
||||
|
||||
extern "C" fn attributed_substring_for_proposed_range(
|
||||
|
Loading…
Reference in New Issue
Block a user