Skip to content

Commit 8a2d821

Browse files
author
Guy Chronister
committed
Updated code.
1 parent dc66bd3 commit 8a2d821

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

neothesia-core/src/render/guidelines.rs

+2-15
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::{
44
render::{QuadInstance, QuadPipeline},
55
render::text::{TextInstance, TextPipeline}, // Move to text module
66
utils::Point,
7+
piano_layout::{Key, KeyboardLayout},
78
};
89

910
pub struct GuidelineRenderer {
@@ -51,7 +52,7 @@ impl GuidelineRenderer {
5152

5253
/// Reupload instances to GPU
5354
fn reupload(&mut self) {
54-
if !self.vertical_guidelines {
55+
if (!self.vertical_guidelines) {
5556
return;
5657
}
5758

@@ -179,17 +180,3 @@ impl GuidelineRenderer {
179180
}
180181
}
181182

182-
impl KeyboardLayout {
183-
pub fn white_keys(&self) -> impl Iterator<Item = &Key> {
184-
self.keys.iter().filter(|k| !k.is_black())
185-
}
186-
187-
pub fn black_keys(&self) -> impl Iterator<Item = &Key> {
188-
self.keys.iter().filter(|k| k.is_black())
189-
}
190-
191-
pub fn height(&self) -> f32 {
192-
self.height
193-
}
194-
}
195-

0 commit comments

Comments
 (0)