Remove unused Counter in lapce-proxy.

This commit is contained in:
Philip Daniels 2022-04-04 21:42:01 +01:00
parent ca01893125
commit 3adcd12cba
1 changed files with 0 additions and 13 deletions

View File

@ -3,7 +3,6 @@
collections::VecDeque,
io::{self, ErrorKind, Read, Write},
path::PathBuf,
sync::atomic::{self, AtomicU64},
};
use alacritty_terminal::{
@ -29,18 +28,6 @@
const READ_BUFFER_SIZE: usize = 0x10_0000;
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)
}
}
pub type TermConfig = alacritty_terminal::config::Config;
pub struct Terminal {