tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 788HTML 740Markdown 12TOML 62536 Definitions

code cleanup

131ec7a024f1ce03d9108f053259bbb04cb53b12 · by Emil Sjölander · (7 years ago) · parent 662b5f4e6 · 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) }
-    }
-}