Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Remove deprecated code

Juan José Mataebdaafaf954e
diff --git a/app/services/simplefin_item/unlinker.rb b/app/services/simplefin_item/unlinker.rb
deleted file mode 100644
index d676af9998..0000000000
--- a/app/services/simplefin_item/unlinker.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-# frozen_string_literal: true
-
-# DEPRECATED: This thin wrapper remains only for backward compatibility.
-# Business logic has moved into `SimplefinItem::Unlinking` (model concern).
-# Prefer calling `item.unlink_all!(dry_run: ...)` directly.
-class SimplefinItem::Unlinker
- attr_reader :item, :dry_run
-
- def initialize(item, dry_run: false)
- @item = item
- @dry_run = dry_run
- end
-
- def unlink_all!
- item.unlink_all!(dry_run: dry_run)
- end
-end