diff options
Diffstat (limited to 'library/src/text')
| -rw-r--r-- | library/src/text/misc.rs | 7 | ||||
| -rw-r--r-- | library/src/text/shift.rs | 14 |
2 files changed, 0 insertions, 21 deletions
diff --git a/library/src/text/misc.rs b/library/src/text/misc.rs index 2129059a..184294d4 100644 --- a/library/src/text/misc.rs +++ b/library/src/text/misc.rs @@ -76,13 +76,6 @@ impl LinebreakNode { let justify = args.named("justify")?.unwrap_or(false); Ok(Self { justify }.pack()) } - - fn field(&self, name: &str) -> Option<Value> { - match name { - "justify" => Some(Value::Bool(self.justify)), - _ => None, - } - } } impl Behave for LinebreakNode { diff --git a/library/src/text/shift.rs b/library/src/text/shift.rs index 9713c0c7..a7967650 100644 --- a/library/src/text/shift.rs +++ b/library/src/text/shift.rs @@ -50,13 +50,6 @@ impl SubNode { fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { Ok(Self(args.expect("body")?).pack()) } - - fn field(&self, name: &str) -> Option<Value> { - match name { - "body" => Some(Value::Content(self.0.clone())), - _ => None, - } - } } impl Show for SubNode { @@ -130,13 +123,6 @@ impl SuperNode { fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { Ok(Self(args.expect("body")?).pack()) } - - fn field(&self, name: &str) -> Option<Value> { - match name { - "body" => Some(Value::Content(self.0.clone())), - _ => None, - } - } } impl Show for SuperNode { |
