remove temporary debug print statements

Keith Simmons and mikayla.c.maki@gmail.com created

Co-authored-by: mikayla.c.maki@gmail.com

Change summary

crates/terminal/src/connection.rs       | 2 +-
crates/terminal/src/modal.rs            | 4 ----
crates/terminal/src/terminal.rs         | 3 +--
crates/terminal/src/terminal_element.rs | 1 -
4 files changed, 2 insertions(+), 8 deletions(-)

Detailed changes

crates/terminal/src/connection.rs 🔗

@@ -115,7 +115,7 @@ impl TerminalConnection {
         event: alacritty_terminal::event::Event,
         cx: &mut ModelContext<Self>,
     ) {
-        match dbg!(event) {
+        match event {
             // TODO: Handle is_self_focused in subscription on terminal view
             AlacTermEvent::Wakeup => {
                 cx.emit(Event::Wakeup);

crates/terminal/src/modal.rs 🔗

@@ -11,16 +11,13 @@ pub fn deploy_modal(workspace: &mut Workspace, _: &DeployModal, cx: &mut ViewCon
         );
 
     if let Some(stored_connection) = possible_connection {
-        println!("Found stored connection");
         // Create a view from the stored connection
         workspace.toggle_modal(cx, |_, cx| {
             cx.add_view(|cx| Terminal::from_connection(stored_connection, true, cx))
         });
     } else {
-        println!("No global connection :(");
         // No connection was stored, create a new terminal
         if let Some(closed_terminal_handle) = workspace.toggle_modal(cx, |workspace, cx| {
-            println!("Creating new terminal connection");
             let project = workspace.project().read(cx);
             let abs_path = project
                 .active_entry()
@@ -33,7 +30,6 @@ pub fn deploy_modal(workspace: &mut Workspace, _: &DeployModal, cx: &mut ViewCon
             cx.subscribe(&connection_handle, on_event).detach();
             this
         }) {
-            println!("Pulled connection from modal and stored in global");
             let connection = closed_terminal_handle.read(cx).connection.clone();
             cx.set_global(Some(connection));
         }

crates/terminal/src/terminal.rs 🔗

@@ -139,7 +139,7 @@ impl Terminal {
         cx: &mut ViewContext<Self>,
     ) -> Terminal {
         cx.observe(&connection, |_, _, cx| cx.notify()).detach();
-        cx.subscribe(&connection, |this, _, event, cx| match dbg!(event) {
+        cx.subscribe(&connection, |this, _, event, cx| match event {
             Event::Wakeup => {
                 if cx.is_self_focused() {
                     cx.notify()
@@ -472,7 +472,6 @@ mod tests {
             .condition(cx, |terminal, cx| {
                 let term = terminal.connection.read(cx).term.clone();
                 let content = grid_as_str(term.lock().renderable_content().display_iter);
-                dbg!(&content);
                 content.contains("7")
             })
             .await;

crates/terminal/src/terminal_element.rs 🔗

@@ -218,7 +218,6 @@ impl Element for TerminalEl {
         layout: &mut Self::LayoutState,
         cx: &mut gpui::PaintContext,
     ) -> Self::PaintState {
-        println!("Painted a terminal element");
         //Setup element stuff
         let clip_bounds = Some(visible_bounds);