Remove unused Counter in data crate.
use serde::{Deserialize, Serialize};
use std::fmt::{Display, Write};
use std::path::PathBuf;
-use std::sync::atomic;
-use std::sync::atomic::AtomicU64;
#[derive(PartialEq)]
enum KeymapMatch {
@@ -173,22 +171,3 @@ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
)
}
}
-
-pub struct Counter(AtomicU64);
-
-impl Counter {
- pub const fn new() -> Counter {
- Counter(AtomicU64::new(1))
- }
-
- pub fn next(&self) -> u64 {
- self.0.fetch_add(1, atomic::Ordering::Relaxed)
- }
-}
-
-#[cfg(test)]
-mod tests {
-
- #[test]
- fn test_check_condition() {}
-}
