Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions crates/terraphim_automata/src/url_protector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,13 @@ pub struct ProtectedUrl {
}

/// URL protector for masking and restoring URLs during text replacement.
#[derive(Debug, Clone)]
pub struct UrlProtector {
/// Counter for generating unique placeholders
_placeholder_counter: u32,
}

impl Default for UrlProtector {
fn default() -> Self {
Self::new()
}
}
#[derive(Debug, Clone, Default)]
pub struct UrlProtector;

impl UrlProtector {
/// Create a new URL protector.
pub fn new() -> Self {
Self {
_placeholder_counter: 0,
}
Self
}

/// Mask all URLs in the text with placeholders.
Expand Down
9 changes: 0 additions & 9 deletions crates/terraphim_rolegraph/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1031,15 +1031,6 @@ impl RoleGraph {
Ok(documents)
}

// pub fn parse_document_to_pair(&mut self, document_id: &str, text: &str) {
// let matches = self.find_matching_node_ids(text);
// for (a, b) in matches.into_iter().tuple_windows() {
// // cast to Id
// let a = a as Id;
// self.add_or_update_document(document_id, a, b);
// }
// }

/// Inserts an document into the rolegraph
pub fn insert_document(&mut self, document_id: &str, document: Document) {
self.documents.insert(
Expand Down
Loading