about summary refs log tree commit diff
path: root/src/display/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/display/utils.rs')
-rw-r--r--src/display/utils.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/display/utils.rs b/src/display/utils.rs
deleted file mode 100644
index acd4416cb884..000000000000
--- a/src/display/utils.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use std::iter::FromIterator;
-
-pub fn times<A: Copy, B: FromIterator<A>>(elem: A, n: u16) -> B {
-    (0..n).map(|_| elem).collect()
-}
-
-pub fn clone_times<A: Clone, B: FromIterator<A>>(elem: A, n: u16) -> B {
-    (0..n).map(|_| elem.clone()).collect()
-}