about summary refs log tree commit diff
path: root/lib/paperclip
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-04-06 14:11:22 +0200
committerGitHub <noreply@github.com>2020-04-06 14:11:22 +0200
commit0773a512ac5019663545992a3300ae7ca0974876 (patch)
tree0a45850f3e1e49d972bcf15f92f32458a56843c7 /lib/paperclip
parent2924cef2f812b2ba74b8cf528f10e0f97c865942 (diff)
Fix trying to delete already deleted file when post-processing (#13406)
Fix #13403
Diffstat (limited to 'lib/paperclip')
-rw-r--r--lib/paperclip/attachment_extensions.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/paperclip/attachment_extensions.rb b/lib/paperclip/attachment_extensions.rb
index d9ec0159a..ce5780557 100644
--- a/lib/paperclip/attachment_extensions.rb
+++ b/lib/paperclip/attachment_extensions.rb
@@ -14,17 +14,6 @@ module Paperclip
       end
     end
 
-    def reprocess_original!
-      old_original_path = path(:original)
-      reprocess!(:original)
-      new_original_path = path(:original)
-
-      if new_original_path != old_original_path
-        @queued_for_delete << old_original_path
-        flush_deletes
-      end
-    end
-
     def variant?(other_filename)
       return true  if original_filename == other_filename
       return false if original_filename.nil?