aboutsummaryrefslogtreecommitdiff
path: root/object
diff options
context:
space:
mode:
Diffstat (limited to 'object')
-rw-r--r--object/store/dual/dual.go2
-rw-r--r--object/store/dual/quarantine_begin.go34
2 files changed, 0 insertions, 36 deletions
diff --git a/object/store/dual/dual.go b/object/store/dual/dual.go
index f95a9194..81dc57d7 100644
--- a/object/store/dual/dual.go
+++ b/object/store/dual/dual.go
@@ -30,7 +30,5 @@ var (
_ objectstore.Reader = (*Dual)(nil)
_ objectstore.ObjectWriter = (*Dual)(nil)
_ objectstore.PackWriter = (*Dual)(nil)
- _ objectstore.ObjectQuarantiner = (*Dual)(nil)
- _ objectstore.PackQuarantiner = (*Dual)(nil)
_ objectstore.WriterQuarantiner = (*Dual)(nil)
)
diff --git a/object/store/dual/quarantine_begin.go b/object/store/dual/quarantine_begin.go
index cd516c3e..143bd57d 100644
--- a/object/store/dual/quarantine_begin.go
+++ b/object/store/dual/quarantine_begin.go
@@ -6,40 +6,6 @@ import objectstore "codeberg.org/lindenii/furgit/object/store"
//
// Labels: Deps-Borrowed, Life-Parent, Close-No.
func (dual *Dual) BeginQuarantine(opts objectstore.QuarantineOptions) (objectstore.WriterQuarantine, error) {
- return dual.beginQuarantine(opts)
-}
-
-// BeginObjectQuarantine creates one coordinated dual quarantine spanning both
-// stores and returns it as an object-wise quarantine.
-//
-// Labels: Deps-Borrowed, Life-Parent, Close-No.
-func (dual *Dual) BeginObjectQuarantine(opts objectstore.ObjectQuarantineOptions) (objectstore.ObjectQuarantine, error) {
- quarantine, err := dual.beginQuarantine(objectstore.QuarantineOptions{
- Object: opts,
- })
- if err != nil {
- return nil, err
- }
-
- return quarantine, nil
-}
-
-// BeginPackQuarantine creates one coordinated dual quarantine spanning both
-// stores and returns it as a pack-wise quarantine.
-//
-// Labels: Deps-Borrowed, Life-Parent, Close-No.
-func (dual *Dual) BeginPackQuarantine(opts objectstore.PackQuarantineOptions) (objectstore.PackQuarantine, error) {
- quarantine, err := dual.beginQuarantine(objectstore.QuarantineOptions{
- Pack: opts,
- })
- if err != nil {
- return nil, err
- }
-
- return quarantine, nil
-}
-
-func (dual *Dual) beginQuarantine(opts objectstore.QuarantineOptions) (*quarantine, error) {
objectQ, err := dual.object.BeginObjectQuarantine(opts.Object)
if err != nil {
return nil, err