summaryrefslogtreecommitdiffstats
path: root/src/frontier
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontier')
-rw-r--r--src/frontier/image.rs4
-rw-r--r--src/frontier/mean.rs4
-rw-r--r--src/frontier/min.rs4
3 files changed, 0 insertions, 12 deletions
diff --git a/src/frontier/image.rs b/src/frontier/image.rs
index 5db33b8..ded0cbe 100644
--- a/src/frontier/image.rs
+++ b/src/frontier/image.rs
@@ -58,10 +58,6 @@ where
self.len - self.deleted
}
- fn is_empty(&self) -> bool {
- self.len() == 0
- }
-
fn place(&mut self, rgb8: Rgb8) -> Option<(u32, u32)> {
let color = C::from(rgb8);
diff --git a/src/frontier/mean.rs b/src/frontier/mean.rs
index 25bee7d..30443c9 100644
--- a/src/frontier/mean.rs
+++ b/src/frontier/mean.rs
@@ -139,10 +139,6 @@ where
self.len - self.deleted
}
- fn is_empty(&self) -> bool {
- self.len() == 0
- }
-
fn place(&mut self, rgb8: Rgb8) -> Option<(u32, u32)> {
let color = C::from(rgb8);
let (x, y) = self.forest.nearest(&Target(color)).map(|n| n.item.pos)?;
diff --git a/src/frontier/min.rs b/src/frontier/min.rs
index 8c5099d..da08746 100644
--- a/src/frontier/min.rs
+++ b/src/frontier/min.rs
@@ -144,10 +144,6 @@ where
self.len - self.deleted
}
- fn is_empty(&self) -> bool {
- self.len() == 0
- }
-
fn place(&mut self, rgb8: Rgb8) -> Option<(u32, u32)> {
let color = C::from(rgb8);
let (x, y) = self