Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
AttachmentAdapter now handles this for us.
  • Loading branch information
sikachu committed Apr 17, 2012
1 parent 40207c7 commit 02eb725
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/paperclip/attachment.rb
Expand Up @@ -426,10 +426,6 @@ def flush_errors #:nodoc:

# 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)
Expand Down

0 comments on commit 02eb725

Please sign in to comment.