From b11743442a6851a3759b7e19582c9021b52bd912 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Wed, 19 May 2021 05:05:32 +0200 Subject: [PATCH] removed hexotk references --- src/cell_dir.rs | 17 ----------------- src/dsp/satom.rs | 30 ------------------------------ 2 files changed, 47 deletions(-) diff --git a/src/cell_dir.rs b/src/cell_dir.rs index 6a2da52..7b27883 100644 --- a/src/cell_dir.rs +++ b/src/cell_dir.rs @@ -80,20 +80,3 @@ impl CellDir { } } } - -#[cfg(feature="hexotk")] -use hexotk::widgets::HexDir; - -#[cfg(feature="hexotk")] -impl From for CellDir { - fn from(h: HexDir) -> Self { - CellDir::from(h.to_edge()) - } -} - -#[cfg(feature="hexotk")] -impl From for HexDir { - fn from(c: CellDir) -> Self { - HexDir::from(c.to_edge()) - } -} diff --git a/src/dsp/satom.rs b/src/dsp/satom.rs index 1fcc6fb..fdd65dc 100644 --- a/src/dsp/satom.rs +++ b/src/dsp/satom.rs @@ -67,33 +67,3 @@ impl SAtom { impl From for SAtom { fn from(n: f32) -> Self { SAtom::Param(n) } } - - -#[cfg(feature="hexotk")] -use hexotk::Atom; - -#[cfg(feature="hexotk")] -impl From for SAtom { - fn from(n: Atom) -> Self { - match n { - Atom::Str(s) => SAtom::Str(s), - Atom::MicroSample(s) => SAtom::MicroSample(s), - Atom::AudioSample(s) => SAtom::AudioSample(s), - Atom::Setting(s) => SAtom::Setting(s), - Atom::Param(s) => SAtom::Param(s), - } - } -} - -#[cfg(feature="hexotk")] -impl From for Atom { - fn from(n: SAtom) -> Atom { - match n { - SAtom::Str(s) => Atom::Str(s), - SAtom::MicroSample(s) => Atom::MicroSample(s), - SAtom::AudioSample(s) => Atom::AudioSample(s), - SAtom::Setting(s) => Atom::Setting(s), - SAtom::Param(s) => Atom::Param(s), - } - } -}