Commit 02eb7259 by Prem Sichanugrist

Remove unused code

AttachmentAdapter now handles this for us.
parent 40207c74
......@@ -426,10 +426,6 @@ module Paperclip
# called by storage after the writes are flushed and before @queued_for_writes is cleared
def after_flush_writes
@queued_for_write.each do |style, file|
# file.close unless file.closed?
# file.unlink if file.respond_to?(:unlink) && file.path.present? && File.exist?(file.path)
end
end
def cleanup_filename(filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment