summaryrefslogtreecommitdiff
path: root/src/layout/frame.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-09 14:05:57 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-09 22:44:40 +0200
commitbce553a991f19b2b5bb9efef6b74bd12e15a10c6 (patch)
treefa8ed4b3974927b30e6cffd0d71d4c3e980698de /src/layout/frame.rs
parent29cfef0a6dfef5820bda339d327638e285aaf4d3 (diff)
Tidy up
Diffstat (limited to 'src/layout/frame.rs')
-rw-r--r--src/layout/frame.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/layout/frame.rs b/src/layout/frame.rs
index f1dc07e6..6cecc7a3 100644
--- a/src/layout/frame.rs
+++ b/src/layout/frame.rs
@@ -35,14 +35,6 @@ impl Frame {
self.push(pos + subpos, element);
}
}
-
- /// Translate the positions of all elements in the frame by adding the
- /// argument to their position.
- pub fn translate(&mut self, amount: Point) {
- for (pos, _) in &mut self.elements {
- *pos += amount;
- }
- }
}
/// The building block frames are composed of.