From badff3f3cbf25c567d5bb27a84b32e3881966a50 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 15 Jan 2023 07:42:42 +0900 Subject: [PATCH] Remove unused make_fqn() --- plume-common/Cargo.toml | 2 +- plume-common/src/utils.rs | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/plume-common/Cargo.toml b/plume-common/Cargo.toml index a10a0c7b..3d1f08d1 100644 --- a/plume-common/Cargo.toml +++ b/plume-common/Cargo.toml @@ -25,8 +25,8 @@ url = "2.2.2" flume = "0.10.13" tokio = { version = "1.19.2", features = ["full"] } futures = "0.3.25" -heck = "0.4.0" anyhow = "1.0.68" +heck = "0.4.0" [dependencies.chrono] features = ["serde"] diff --git a/plume-common/src/utils.rs b/plume-common/src/utils.rs index 330e467a..37045d5a 100644 --- a/plume-common/src/utils.rs +++ b/plume-common/src/utils.rs @@ -1,5 +1,4 @@ use activitystreams::iri_string::percent_encode::PercentEncodedForIri; -use heck::ToUpperCamelCase; use openssl::rand::rand_bytes; use pulldown_cmark::{html, CodeBlockKind, CowStr, Event, LinkType, Options, Parser, Tag}; use regex_syntax::is_word_character; @@ -25,13 +24,6 @@ pub fn iri_percent_encode_seg(segment: &str) -> String { PercentEncodedForIri::from_path_segment(segment).to_string() } -pub fn make_fqn(name: &str) -> String { - name.to_upper_camel_case() - .chars() - .filter(|c| c.is_ascii_alphanumeric()) - .collect() -} - #[derive(Debug)] enum State { Mention,