diff options
Diffstat (limited to 'library/src/math/matrix.rs')
| -rw-r--r-- | library/src/math/matrix.rs | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/library/src/math/matrix.rs b/library/src/math/matrix.rs index 45ebdda7..72ef0253 100644 --- a/library/src/math/matrix.rs +++ b/library/src/math/matrix.rs @@ -39,20 +39,11 @@ impl VecNode { fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { Ok(Self(args.all()?).pack()) } - - fn field(&self, name: &str) -> Option<Value> { - match name { - "elements" => { - Some(Value::Array(self.0.iter().cloned().map(Value::Content).collect())) - } - _ => None, - } - } } impl LayoutMath for VecNode { fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> { - let delim = ctx.outer.get(Self::DELIM); + let delim = ctx.styles().get(Self::DELIM); layout(ctx, &self.0, Align::Center, Some(delim.open()), Some(delim.close())) } } @@ -86,15 +77,6 @@ impl CasesNode { fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { Ok(Self(args.all()?).pack()) } - - fn field(&self, name: &str) -> Option<Value> { - match name { - "branches" => { - Some(Value::Array(self.0.iter().cloned().map(Value::Content).collect())) - } - _ => None, - } - } } impl LayoutMath for CasesNode { |
