summaryrefslogtreecommitdiff
path: root/src/library/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/mod.rs')
-rw-r--r--src/library/mod.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs
index 358c2204..a5f0b50c 100644
--- a/src/library/mod.rs
+++ b/src/library/mod.rs
@@ -186,15 +186,3 @@ castable! {
Expected: "content",
Value::Content(content) => content.pack(),
}
-
-castable! {
- Spec<Relative<Length>>,
- Expected: "array of two relative lengths",
- Value::Array(array) => {
- let mut iter = array.into_iter();
- match (iter.next(), iter.next(), iter.next()) {
- (Some(a), Some(b), None) => Spec::new(a.cast()?, b.cast()?),
- _ => Err("point array must contain exactly two entries")?,
- }
- },
-}