summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJovansonlee Cesar <ivanceras@gmail.com>2022-09-29 10:05:33 +0800
committerJovansonlee Cesar <ivanceras@gmail.com>2022-09-29 10:05:33 +0800
commitbb874e856880bf161b68eea579ade8601dbaea16 (patch)
tree2c0a0338e5e3dc491d4373234a8e879d681b7c7a
parent25fcd6eee53dc82e2c60b7a2ed21b0c0a0d1f864 (diff)
remove unused code
-rw-r--r--packages/svgbob/src/buffer/property_buffer/property.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/svgbob/src/buffer/property_buffer/property.rs b/packages/svgbob/src/buffer/property_buffer/property.rs
index f7fb355..6dc97e5 100644
--- a/packages/svgbob/src/buffer/property_buffer/property.rs
+++ b/packages/svgbob/src/buffer/property_buffer/property.rs
@@ -48,13 +48,16 @@ impl PartialOrd for Signal {
}
}
+/// TODO: Maybe rename to Characteristic
#[derive(Clone)]
pub struct Property {
pub ch: char,
+
/// the signal signature and the corresponding fragment with that signal
/// This is used in the first pass of checking the surrounding characters for properties
/// if it meets the required condition of the character in spot
signature: Vec<(Signal, Vec<Fragment>)>,
+
/// behavior is the final output of fragments of the spot character
/// depending on flag that is meet when checked agains the surrounding characters
pub behavior: Arc<
@@ -169,17 +172,12 @@ impl Property {
self.ch.is_alphabetic() && self.ch != '_' // since space is used when a property is derived from strong
}
+ /// TODO: maybe rename to match_profile
pub fn match_signature(&self, fragments: &[Fragment]) -> bool {
let signature_fragments = self.signature_fragments_with_signal(Strong);
signature_fragments == *fragments
}
- /// evaluate this property together with the supplied surrounding
- /// to see if the resulting fragments is equal to the supplied fragments
- pub(crate) fn match_property(&self, _fragments: &[Fragment]) -> bool {
- false
- }
-
/// Check to see if this spot can overal the line a b with at least Medium signal
pub(crate) fn line_overlap(&self, a: Point, b: Point) -> bool {
self.line_overlap_with_signal(a, b, Signal::Medium)