Skip to content

Commit

Permalink
Cleared dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
hgraca committed Apr 21, 2013
1 parent dc6c77c commit 2bdaebb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sublime-text-2-php-refactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def runCommandLine(self, filePath, fromLine, toLine, newFcName, execute=False):
else:
execute = ''

# @TODO: this must be a class constant
# @TODO: this must be a top class constant (class Refactor, from where all commands inherit)
refactorFile = sublime.packages_path() + "/sublime-text-2-php-refactor/lib/refactor.phar"
command = "php " + refactorFile + " extract-method " + self.view.file_name() + " " + fromLine + "-" + toLine + " " + newFcName + execute
self.performAction('extract_' + newFcName, command)
Expand All @@ -50,10 +50,6 @@ def runCommandLine(self, filePath, fromLine, toLine, newFcName, execute=False):
def performAction(self, name, command):
fileName = basename(self.view.file_name())

if not command:
print 'Action ' + name + ': No command supplied'
return

print 'Performing action: ' + name + ' (' + command + ')'

p = subprocess.Popen(command, cwd=os.getcwd(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
Expand Down
Binary file modified sublime-text-2-php-refactor.pyc
Binary file not shown.

0 comments on commit 2bdaebb

Please sign in to comment.