From 2d032d79bee0d7c898d9cb2eed2199abe4ce3b5a Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Wed, 19 May 2021 05:03:05 +0200 Subject: [PATCH] UIPatternModel is now a hexodsp trait --- src/dsp/tracker/pattern.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/dsp/tracker/pattern.rs b/src/dsp/tracker/pattern.rs index 09f90ce..3b34828 100644 --- a/src/dsp/tracker/pattern.rs +++ b/src/dsp/tracker/pattern.rs @@ -225,10 +225,6 @@ impl PatternData { } } -#[cfg(feature="hexotk")] -pub use hexotk::widgets::UIPatternModel; - -#[cfg(not(feature="hexotk"))] impl dyn UIPatternModel { pub fn change_value(&mut self, row: usize, col: usize, offs: i16) { let val = self.get_cell_value(row, col) as i16; @@ -237,7 +233,6 @@ impl dyn UIPatternModel { } } -#[cfg(not(feature="hexotk"))] pub trait UIPatternModel: std::fmt::Debug { fn get_cell(&mut self, row: usize, col: usize) -> Option<&str>; fn is_col_note(&self, col: usize) -> bool; @@ -263,7 +258,6 @@ pub trait UIPatternModel: std::fmt::Debug { fn get_edit_step(&mut self) -> usize; } -#[cfg(not(feature="hexotk"))] impl UIPatternModel for PatternData { fn get_cell(&mut self, row: usize, col: usize) -> Option<&str> { if row >= self.data.len() { return None; }