Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Clean up some debug printing

Julia3d8dbee76a3e
diff --git a/crates/gpui/src/presenter.rs b/crates/gpui/src/presenter.rs
index 1fff5c50b51..499e0df93ee 100644
--- a/crates/gpui/src/presenter.rs
+++ b/crates/gpui/src/presenter.rs
@@ -317,14 +317,8 @@ impl Presenter {
}
}
- let t0 = std::time::Instant::now();
- let is_topmost_window =
- cx.is_topmost_window_for_position(self.window_id, *position);
- println!("is_topmost_window => {:?}", t0.elapsed());
- if is_topmost_window {
- let t1 = std::time::Instant::now();
+ if cx.is_topmost_window_for_position(self.window_id, *position) {
cx.platform().set_cursor_style(style_to_assign);
- println!("set_cursor_style => {:?}", t1.elapsed());
}
if !event_reused {