gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 499HTML 238Markdown 7TOML 41214 Definitions

code cleanup

1515121e8814b4f3e8a185a762ef8a9e056b5d20 · by Emil Sjölander · (7 years ago) · parent 84ddf10d2 · browse the tree at this commit

Semantic delta · 1

src/geometry.rs

  • removed def map

1 files · +0 −6

diff --git a/src/geometry.rs b/src/geometry.rs
index 4e3ac2af5..142606b9c 100644
--- a/src/geometry.rs
+++ b/src/geometry.rs
@@ -121,9 +121,3 @@ pub struct Point<T> {
     pub x: T,
     pub y: T,
 }
-
-impl<T> Point<T> {
-    pub(crate) fn map<R>(self, f: &(Fn(T) -> R)) -> Point<R> {
-        Point { x: f(self.x), y: f(self.y) }
-    }
-}