gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[robocop] branch master updated: DCE


From: Admin
Subject: [robocop] branch master updated: DCE
Date: Tue, 10 Jun 2025 13:41:59 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository robocop.

The following commit(s) were added to refs/heads/master by this push:
     new a8b9844  DCE
a8b9844 is described below

commit a8b9844fce17fde97cfe04680cd06e1ac9bf8733
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Jun 10 13:41:56 2025 +0200

    DCE
---
 src/main.rs | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index cb6cdec..11bb54c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -80,11 +80,8 @@ fn parse_args() -> Option<String> {
 }
 
 
-// Finite State Machine for efficient string matching
 #[derive(Debug, Clone)]
 struct Matching {
-    // Maps (state, char) -> new_state
-    transitions: HashMap<(usize, char), usize>,
     // Final states with their associated values and costs
     final_states: HashMap<usize, (String, usize)>,
     max_state: usize,
@@ -93,7 +90,6 @@ struct Matching {
 impl Matching {
     fn new() -> Self {
         Self {
-            transitions: HashMap::new(),
             final_states: HashMap::new(),
             max_state: 0,
         }
@@ -119,12 +115,6 @@ impl Matching {
             );
         }
 
-        // Build transitions for exact matches
-        for (i, &ch) in chars.iter().enumerate() {
-            let current_state = state_ids[i];
-            let next_state = state_ids[i + 1];
-            self.transitions.insert((current_state, ch), next_state);
-        }
     }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]