gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 231Rust 10TOML 3CSS 1350 Definiciones

code cleanup

131ec7a024f1ce03d9108f053259bbb04cb53b12 · por Emil Sjölander · (hace 7 años) · padre 662b5f4e6 · ver el árbol en este commit

Delta semántico · 1

src/geometry.rs

  • borrada def map

1 archivos · +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) }
-    }
-}