tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 520HTML 244Markdown 7TOML 41339 Definiciones

Remove commented out code

ef3774d3b818b977e157de95979780f48f3a95d6 · por Nico Burns · (hace 3 años) · padre d1b0451f7 · ver el árbol en este commit

Delta semántico

Ninguna definición cambió: el cambio es de texto, documentación o datos.

1 archivos · +0 −4

diff --git a/src/compute/leaf.rs b/src/compute/leaf.rs
index 2b567ccc4..6f95145db 100644
--- a/src/compute/leaf.rs
+++ b/src/compute/leaf.rs
@@ -120,10 +120,6 @@ pub(crate) fn compute(
 
         let size = node_size.unwrap_or(measured_size).maybe_clamp(node_min_size, node_max_size);
         let size = size.maybe_max(padding_border.sum_axes().map(Some));
-        // let size = match sizing_mode {
-        //     SizingMode::ContentSize => size,
-        //     SizingMode::InherentSize => size.maybe_max(padding_border.sum_axes().map(Some)),
-        // };
         return SizeAndBaselines { size, first_baselines: Point::NONE };
     }