Skip to content

Commit 388f8da

Browse files
committed
removed debug statements
1 parent e1e316b commit 388f8da

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

src/exercise.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ fn run_bin(
5555
}
5656

5757
/// See `info_file::ExerciseInfo`
58-
#[derive(Debug)]
5958
pub struct Exercise {
6059
pub dir: Option<&'static str>,
6160
pub name: &'static str,

src/list.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
4343
return Ok(());
4444
}
4545
KeyCode::Char(k) => {
46-
eprintln!("pressed while searching {:?}", curr_key);
47-
4846
list_state.search_query.push(k);
4947
list_state.message.push_str("search:");
5048
list_state.message.push_str(&list_state.search_query);
@@ -109,15 +107,12 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
109107
}
110108
}
111109
KeyCode::Char('s') | KeyCode::Char('/') => {
112-
eprintln!("starting search");
113110
list_state.message.push_str("search:|");
114111
is_searching = true;
115112
}
116113
// Redraw to remove the message.
117114
KeyCode::Esc => (),
118-
_ => {
119-
continue;
120-
}
115+
_ => continue,
121116
}
122117
}
123118
Event::Mouse(event) => match event.kind {

src/list/state.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,6 @@ impl<'a> ListState<'a> {
348348
}
349349

350350
pub fn select_if_matches_search_query(&mut self) {
351-
eprintln!("search query: {:?}", self.search_query);
352-
353351
let idx = self
354352
.app_state
355353
.exercises()
@@ -362,15 +360,13 @@ impl<'a> ListState<'a> {
362360
None
363361
}
364362
});
365-
eprintln!("idx: {:?}", idx);
366363

367364
match idx {
368365
Some(i) => {
369366
// ? do we need this function call?
370367
// let exercise_ind = self.selected_to_exercise_ind(i).unwrap();
371368
let exercise_ind = i;
372369
self.scroll_state.set_selected(exercise_ind);
373-
eprintln!("exercise_ind: {:?}", exercise_ind);
374370
self.update_rows();
375371
}
376372
None => {

0 commit comments

Comments
 (0)