summaryrefslogtreecommitdiff
path: root/src/model/value.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-28 15:35:56 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-28 15:36:32 +0100
commit4809e685a231a3ade2c78b75685ee859196c38c1 (patch)
treee3141236cca536c31c6ef4a6df6d218c16ba5a94 /src/model/value.rs
parent28c554ec2185a15e22f0408ce485ed4afe035e03 (diff)
More capable math calls
Diffstat (limited to 'src/model/value.rs')
-rw-r--r--src/model/value.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/model/value.rs b/src/model/value.rs
index 4b9fa5f7..ea17349e 100644
--- a/src/model/value.rs
+++ b/src/model/value.rs
@@ -145,16 +145,6 @@ impl Value {
}
}
- /// Return the display representation of the value in math mode.
- pub fn display_in_math(self) -> Content {
- match self {
- Self::Int(v) => item!(math_atom)(format_eco!("{}", v)),
- Self::Float(v) => item!(math_atom)(format_eco!("{}", v)),
- Self::Symbol(v) => item!(math_atom)(v.get().into()),
- _ => self.display(),
- }
- }
-
/// Try to extract documentation for the value.
pub fn docs(&self) -> Option<&'static str> {
match self {
@@ -447,8 +437,8 @@ primitive! { Label: "label", Label }
primitive! { Content: "content",
Content,
None => Content::empty(),
- Symbol(symbol) => item!(text)(symbol.get().into()),
- Str(text) => item!(text)(text.into())
+ Symbol(v) => item!(text)(v.get().into()),
+ Str(v) => item!(text)(v.into())
}
primitive! { Array: "array", Array }
primitive! { Dict: "dictionary", Dict }