diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs index 4a85378c..16b16dd8 100644 --- a/pbs-api-types/src/jobs.rs +++ b/pbs-api-types/src/jobs.rs @@ -519,23 +519,6 @@ impl std::fmt::Display for SyncDirection { } } -impl SyncDirection { - pub fn as_config_type_str(&self) -> &'static str { - match self { - SyncDirection::Pull => "sync", - SyncDirection::Push => "sync-push", - } - } - - pub fn from_config_type_str(config_type: &str) -> Result { - match config_type { - "sync" => Ok(SyncDirection::Pull), - "sync-push" => Ok(SyncDirection::Push), - _ => bail!("invalid config type for sync job"), - } - } -} - pub const RESYNC_CORRUPT_SCHEMA: Schema = BooleanSchema::new("If the verification failed for a local snapshot, try to pull it again.") .schema();