From d8b5c1ad1c9226e5a720158e82b6cea847aa3c79 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Tue, 29 Aug 2023 11:52:53 +0200 Subject: [PATCH] cob: Remove support for legacy patches --- radicle/src/cob/legacy.rs | 1 - radicle/src/cob/legacy/patch.rs | 385 -------------------------------- radicle/src/cob/patch.rs | 17 -- 3 files changed, 403 deletions(-) delete mode 100644 radicle/src/cob/legacy/patch.rs diff --git a/radicle/src/cob/legacy.rs b/radicle/src/cob/legacy.rs index a5dfc54bb..d93d369fc 100644 --- a/radicle/src/cob/legacy.rs +++ b/radicle/src/cob/legacy.rs @@ -1,2 +1 @@ pub mod issue; -pub mod patch; diff --git a/radicle/src/cob/legacy/patch.rs b/radicle/src/cob/legacy/patch.rs deleted file mode 100644 index fa8853369..000000000 --- a/radicle/src/cob/legacy/patch.rs +++ /dev/null @@ -1,385 +0,0 @@ -#![allow(clippy::too_many_arguments)] -use std::collections::{BTreeSet, HashMap}; - -use serde::{Deserialize, Serialize}; - -use crate::cob; -use crate::cob::common::{Author, Label}; -use crate::cob::patch; -use crate::cob::patch::{ - CodeLocation, Error, Merge, MergeTarget, Review, Revision, RevisionId, State, Verdict, TYPENAME, -}; -use crate::cob::store::HistoryAction; -use crate::cob::thread; -use crate::cob::{store, EntryId, TypeName}; -use crate::git; -use crate::prelude::*; - -/// Patch operation. -pub type Op = cob::Op; - -/// Patch operation. -#[derive(Debug, PartialEq, Eq, Clone, Serialize, Deserialize)] -#[serde(tag = "type", rename_all = "camelCase")] -pub enum Action { - Edit { - title: String, - target: MergeTarget, - }, - EditRevision { - revision: RevisionId, - description: String, - }, - EditReview { - review: EntryId, - summary: Option, - }, - EditCodeComment { - review: EntryId, - comment: EntryId, - body: String, - }, - Tag { - add: Vec