The dead imports and the arguments nothing reads
Browse files at this commit07ee3c7a60cd25a7dc14b12c53338264358c51b4Parent: 197d1e2- chore
- the dead imports and the arguments nothing reads
4 changed files +5 -12
- crates/app/src/render.rs +0 -1
- crates/app/src/tests/mod.rs +5 -5
- crates/app/src/ui/preview.rs +0 -1
- crates/app/src/ui/timeline.rs +0 -5
crates/app/src/render.rsmodified+0 -1
| @@ -647,7 +647,6 @@ impl Render for Player { | |||
| 647 | .child(self.toolbar(cx)) | 647 | .child(self.toolbar(cx)) |
| 648 | .child(self.timeline( | 648 | .child(self.timeline( |
| 649 | position, | 649 | position, |
| 650 | - duration, | ||
| 651 | state, | 650 | state, |
| 652 | f32::from(window.viewport_size().height), | 651 | f32::from(window.viewport_size().height), |
| 653 | cx, | 652 | cx, |
crates/app/src/tests/mod.rsmodified+5 -5
| @@ -14,11 +14,11 @@ use super::{ | |||
| 14 | EQ_CURVE_STEPS, EQ_FFT, EQ_FREQ_HIGH, EQ_FREQ_LOW, EQ_FREQ_STEP, EQ_GAIN_LIMIT, EQ_GRAPH_H, | 14 | EQ_CURVE_STEPS, EQ_FFT, EQ_FREQ_HIGH, EQ_FREQ_LOW, EQ_FREQ_STEP, EQ_GAIN_LIMIT, EQ_GRAPH_H, |
| 15 | EQ_HANDLE, EQ_Q_HIGH, EQ_Q_LOW, EQ_Q_STEP, EQ_SPECTRUM_DB, EQ_TICKS, EQ_W_MAX, ESCAPE, | 15 | EQ_HANDLE, EQ_Q_HIGH, EQ_Q_LOW, EQ_Q_STEP, EQ_SPECTRUM_DB, EQ_TICKS, EQ_W_MAX, ESCAPE, |
| 16 | EXPORT_FIXED_H, EXPORT_ROWS_H, EXPORT_W, Enable, EncoderSeat, FORMATS, | 16 | EXPORT_FIXED_H, EXPORT_ROWS_H, EXPORT_W, Enable, EncoderSeat, FORMATS, |
| 17 | - Format, HEADER_GAP, HEADER_H, HEADER_W, HIST_BINS, HIST_H, HIST_SAMPLES, HIT_MIN, FG_PRIMARY, | 17 | + Format, HEADER_GAP, HEADER_H, HEADER_W, HIST_BINS, HIST_H, HIST_SAMPLES, HIT_MIN, |
| 18 | - FG_SECONDARY, KEYS_ROW_H, KEYS_ROWS_H, KEYS_W, KeyRow, LABEL_H, LABEL_MIN_W, LANE_H, LANES_MAX, | 18 | + KEYS_ROW_H, KEYS_ROWS_H, KEYS_W, KeyRow, LABEL_H, LABEL_MIN_W, LANE_H, LANES_MAX, |
| 19 | - BG_CANVAS, LIBRARY_MAX_W, LIBRARY_MIN_W, Lane, MENU_ITEMS, MENU_PAD, MENU_ROW_H, | 19 | + LIBRARY_MAX_W, LIBRARY_MIN_W, Lane, MENU_ITEMS, MENU_PAD, MENU_ROW_H, |
| 20 | MBPS_DIGITS, MBPS_MAX, MBPS_MIN, MB_FLOOR, MENU_W, NO_FILE, NumberEdit, PANEL_H, ROW_ITEMS, RowCtx, RowItem, | 20 | MBPS_DIGITS, MBPS_MAX, MBPS_MIN, MB_FLOOR, MENU_W, NO_FILE, NumberEdit, PANEL_H, ROW_ITEMS, RowCtx, RowItem, |
| 21 | - Quality, ROW_H, RULER_HIT_H, BG_SELECTED, SCROLL_NOTCH_SHARE, SILENCE_ROWS, | 21 | + Quality, ROW_H, RULER_HIT_H, SCROLL_NOTCH_SHARE, SILENCE_ROWS, |
| 22 | SOURCE_TINTS, SPEED_PRESETS, SPEED_STEP, BG_RAISED, SWATCH_W, Source, Speed, StreamInfo, | 22 | SOURCE_TINTS, SPEED_PRESETS, SPEED_STEP, BG_RAISED, SWATCH_W, Source, Speed, StreamInfo, |
| 23 | Transport, VOLUME_W, Volume, WAVE_BPS, WAVE_COL, WAVE_COLS_MAX, Wave, band_label, | 23 | Transport, VOLUME_W, Volume, WAVE_BPS, WAVE_COL, WAVE_COLS_MAX, Wave, band_label, |
| 24 | bitrate_detail, bitrate_refusal, can_add, cancels_export, clipboard_after_remove, color_snap, commit_mbps, | 24 | bitrate_detail, bitrate_refusal, can_add, cancels_export, clipboard_after_remove, color_snap, commit_mbps, |
| @@ -54,7 +54,7 @@ use super::{ | |||
| 54 | }; | 54 | }; |
| 55 | 55 | ||
| 56 | use super::{ | 56 | use super::{ |
| 57 | - SUB_BOTTOM, SUB_CUE_MIN_W, SUB_HEAD_H, SUB_FG, SUB_LINE_H, SUB_ROWS_H, | 57 | + SUB_BOTTOM, SUB_CUE_MIN_W, SUB_HEAD_H, SUB_LINE_H, SUB_ROWS_H, |
| 58 | SUB_STEM_SHARE, SUB_TEXT, clip_middle, cue_box, sub_bottom, | 58 | SUB_STEM_SHARE, SUB_TEXT, clip_middle, cue_box, sub_bottom, |
| 59 | carries_subtitles, cues_at, file_tint, is_subtitle, lang_human, row_text_w, sub_headers_fit, | 59 | carries_subtitles, cues_at, file_tint, is_subtitle, lang_human, row_text_w, sub_headers_fit, |
| 60 | Subs, subtitle_detail, subtitle_notice, subtitle_tail, | 60 | Subs, subtitle_detail, subtitle_notice, subtitle_tail, |
crates/app/src/ui/preview.rsmodified+0 -1
| @@ -1,7 +1,6 @@ | |||
| 1 | //! The picture: what is drawn over it and what is read off it. | 1 | //! The picture: what is drawn over it and what is read off it. |
| 2 | 2 | ||
| 3 | use crate::*; | 3 | use crate::*; |
| 4 | -use crate::ui::widgets::*; | ||
| 5 | 4 | ||
| 6 | impl Player { | 5 | impl Player { |
| 7 | /// The cues the *subtitle lanes* put on screen at `at`, over the picture and | 6 | /// The cues the *subtitle lanes* put on screen at `at`, over the picture and |
crates/app/src/ui/timeline.rsmodified+0 -5
| @@ -12,7 +12,6 @@ impl Player { | |||
| 12 | pub(crate) fn timeline( | 12 | pub(crate) fn timeline( |
| 13 | &self, | 13 | &self, |
| 14 | position: f64, | 14 | position: f64, |
| 15 | - duration: f64, | ||
| 16 | state: Transport, | 15 | state: Transport, |
| 17 | viewport_h: f32, | 16 | viewport_h: f32, |
| 18 | cx: &mut Context<Self>, | 17 | cx: &mut Context<Self>, |
| @@ -23,10 +22,6 @@ impl Player { | |||
| 23 | // the bed for long. | 22 | // the bed for long. |
| 24 | let bed_w = f32::from(self.ruler.get().size.width); | 23 | let bed_w = f32::from(self.ruler.get().size.width); |
| 25 | let filled = self.scale.px_at(position).clamp(0., bed_w); | 24 | let filled = self.scale.px_at(position).clamp(0., bed_w); |
| 26 | - // An export owns the hint slot and the ruler while it runs: the | ||
| 27 | - // percentage and the accent bar are the same number, so the playhead | ||
| 28 | - // fill doubles as the progress bar for free. | ||
| 29 | - let exporting = self.exporting().is_some(); | ||
| 30 | let key = |action| self.keymap.display(action); | 25 | let key = |action| self.keymap.display(action); |
| 31 | // The lanes the project has, or the pair a fresh one starts with so the | 26 | // The lanes the project has, or the pair a fresh one starts with so the |
| 32 | // panel reads the same before a file is open as after. | 27 | // panel reads the same before a file is open as after. |