diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-13 11:00:11 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-13 11:00:11 +0100 |
| commit | db49b628f73d3c328aacadbb9126616e7cccfc49 (patch) | |
| tree | c5a4a176e70ac528a3b11ca5ccbdc590b6e1ed87 /library/src/layout/container.rs | |
| parent | 58adf1d025bd7ff149d7fd06147b0f3e069f8c7d (diff) | |
Remove dumb `field` functions
Diffstat (limited to 'library/src/layout/container.rs')
| -rw-r--r-- | library/src/layout/container.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs index a77c0df9..7814c083 100644 --- a/library/src/layout/container.rs +++ b/library/src/layout/container.rs @@ -73,13 +73,6 @@ impl BoxNode { let baseline = args.named("baseline")?.unwrap_or_default(); Ok(Self { body, width, height, baseline }.pack()) } - - fn field(&self, name: &str) -> Option<Value> { - match name { - "body" => Some(Value::Content(self.body.clone())), - _ => None, - } - } } impl Layout for BoxNode { @@ -196,13 +189,6 @@ impl BlockNode { args.named("below")?.map(VNode::block_around).or(spacing), ); } - - fn field(&self, name: &str) -> Option<Value> { - match name { - "body" => Some(Value::Content(self.0.clone())), - _ => None, - } - } } impl Layout for BlockNode { |
