summaryrefslogtreecommitdiff
path: root/src/geom
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-10-26 14:51:48 +0200
committerLaurenz <laurmaedje@gmail.com>2021-10-26 14:56:10 +0200
commitfb0cd3df6e1e1077c6f19c319726c9aa9678325b (patch)
treebde325cdcb0efa59324781bf2af8c4303e5a25de /src/geom
parent1ca4ff69e235ca6dde9ef498a8377d0586f2519c (diff)
Fr in stack and par
Diffstat (limited to 'src/geom')
-rw-r--r--src/geom/size.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/geom/size.rs b/src/geom/size.rs
index 506e1c8f..2143c46b 100644
--- a/src/geom/size.rs
+++ b/src/geom/size.rs
@@ -25,14 +25,6 @@ impl Size {
Self { w: v, h: v }
}
- /// Limit width and height at that of another size.
- pub fn cap(self, limit: Self) -> Self {
- Self {
- w: self.w.min(limit.w),
- h: self.h.min(limit.h),
- }
- }
-
/// Whether the other size fits into this one (smaller width and height).
pub fn fits(self, other: Self) -> bool {
self.w.fits(other.w) && self.h.fits(other.h)