Clean up default macros and constants

This commit is contained in:
Austen Adler 2021-05-08 14:15:41 -04:00
parent b745b0a77c
commit 8ab618103c

View File

@ -80,13 +80,6 @@ impl Default for Calculator {
state: CalculatorState::Normal,
stack: vec![1.0, 2.0].into_iter().collect(),
macros: [
(
'e',
CalculatorMacro {
help: String::from("Empty"),
value: String::from(""),
},
),
(
'm',
CalculatorMacro {
@ -95,11 +88,11 @@ impl Default for Calculator {
},
),
(
'u',
'Q',
CalculatorMacro {
help: String::from("Quadratic Formula"),
value: String::from(
"RcRbRarbnrb2 ^4 rarc**-v+2 ra*/rbnrb2^4 rarc**-v-2 ra*/",
"RcRbRarbnrb2^4rarc**-v+2ra*/rbnrb2^4rarc**-v-2ra*/",
),
},
),