Remove old and experimental code

This commit is contained in:
2026-04-27 11:57:05 +02:00
parent 8b7d76017f
commit 46e980fe76

View File

@@ -14,26 +14,17 @@ pub struct Job {
sender: Option<Sender<BackupEvent>>,
}
#[derive(Debug)]
enum JobSide {
Source,
Destination,
}
#[derive(Debug)]
struct Snapshot {
snapshot: String,
side: JobSide,
}
impl Job {
pub fn dump(&self) {
println!("Datasets: {:?}", self.datasets);
println!("Target: {}", self.target);
println!("Source ZFS Command: {:?}", self.source_zfs_command);
println!("Target ZFS Command: {:?}", self.target_zfs_command);
}
fn send_event(&self, event: BackupEvent) {
if let Some(sender) = &self.sender {
sender.send(event).ok();
@@ -386,13 +377,6 @@ impl JobBuilder {
}
}
struct JobConfig {
sources: Vec<String>,
target: String,
source_zfs_command: Option<String>,
target_zfs_command: Option<String>,
}
#[cfg(test)]
mod tests {
use super::*;