aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlimperfix2025-10-03 18:19:25 +0200
committerKlimperfix2025-10-03 18:19:25 +0200
commit161fc7010cb863e1af534ce1d173136401816a32 (patch)
treea8f6d2fbf533ac8fd70a96a3912fa61913fbe31d
parent26befd38aedbfdd278c3096644baf69e4a1fb051 (diff)
downloadbibiman-161fc7010cb863e1af534ce1d173136401816a32.tar.gz
bibiman-161fc7010cb863e1af534ce1d173136401816a32.zip
Removed unused sanitization functions.
-rw-r--r--src/bibiman/sanitize.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/bibiman/sanitize.rs b/src/bibiman/sanitize.rs
index 614ed11..823b91c 100644
--- a/src/bibiman/sanitize.rs
+++ b/src/bibiman/sanitize.rs
@@ -100,26 +100,6 @@ pub fn sanitize_one_bibidata(bibidata: &BibiData) -> SanitizedBibiData {
optimized_sanitize_bibidata!(bibidata, regex)
}
-/// Sanitize one String with LaTeX Macros into a more readable one without.
-///
-/// If one is going to mass-sanitize strings, one should use the [`sanitize`]
-/// function for performance reasons instead, to process multiple strings at once.
-///
-/// This is just a shortcut for the sanitize function.
-pub fn sanitize_one(input_text: &str) -> String {
- // This does not panic, the sanitize function always returns
- // as many elements in the returned list as it get's elements
- // in the input vector.
- sanitize(vec![input_text]).get(0).unwrap().to_string()
-}
-
-/// Sanitize multiple Strings with LaTeX Macros into more readable unicode equivalents.
-///
-/// This function does always return the same amount of Strings as it gets in the input list.
-pub fn sanitize(input_text: Vec<&str>) -> Vec<String> {
- optimized_sanitize(input_text, &regex_vector())
-}
-
/// Sanitize a whole `Vec<BibiData>`, returning a new sanitized one.
pub fn mass_sanitize(bibidata: Vec<BibiData>) -> Vec<BibiData> {
let regex: Vec<(Regex, &str)> = regex_vector();