Skip to content

Commit

Permalink
[cleanup] remove die_if_rebasing method
Browse files Browse the repository at this point in the history
  • Loading branch information
matthutchinson committed Dec 26, 2015
1 parent 9249c51 commit aabf69c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/lolcommits/runner.rb
Expand Up @@ -24,9 +24,6 @@ def initialize(attributes = {})
# this used to be handled with ActiveSupport::Callbacks, but
# now we're just using a simple procedural list
def run
# abort if we are in a rebase
die_if_rebasing!

# do things that need to happen before capture and plugins

# do native plugins that need to happen before capture
Expand Down Expand Up @@ -110,15 +107,6 @@ def image_file_type

protected

def die_if_rebasing!
debug "Runner: Making sure user isn't rebasing"
return unless git_info && !git_info.repo_internal_path.nil?
mergeclue = File.join git_info.repo_internal_path, 'rebase-merge'
return unless File.directory? mergeclue
debug 'Runner: Rebase detected, silently exiting!'
exit 0
end

def resize_snapshot!
debug 'Runner: resizing snapshot'
image = MiniMagick::Image.open(snapshot_loc)
Expand Down

0 comments on commit aabf69c

Please sign in to comment.