From 2bdaebbd9dcbeef4b8a83e46b6ba58e9d9f81bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herberto=20Gra=C3=A7a?= Date: Sun, 21 Apr 2013 03:14:46 +0200 Subject: [PATCH] Cleared dead code --- sublime-text-2-php-refactor.py | 6 +----- sublime-text-2-php-refactor.pyc | Bin 6020 -> 5951 bytes 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/sublime-text-2-php-refactor.py b/sublime-text-2-php-refactor.py index c02825a..d08a653 100644 --- a/sublime-text-2-php-refactor.py +++ b/sublime-text-2-php-refactor.py @@ -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) @@ -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) diff --git a/sublime-text-2-php-refactor.pyc b/sublime-text-2-php-refactor.pyc index 21a5f7d1a3ea156983c0ca18f1e98e84767c5cf3..1c7506d04d09c806f3b4062399f798f9b2a17e7d 100644 GIT binary patch delta 325 zcmYL@JxjxI5XPTtnwO?cYt<%n5xOc^+(mH^>stgJvI)XpA)}JbIMtU?;SkYPM-?R> zz|p})zkmu3LInj!aq#kA%>=n{4e zC_+jIQ~^OMtqcS+oy0&~gs>_iF%et&zA};PHk73Y2g>F(d${Ew_K=!7(9|cYd8R5! zq{JzgFYO^J^MgHNR^*Q`YdJS$`!a$W*>h=`Xo|J^saKOp!QDB7tgSXw!^jVvtln>X{`+>akjm`^{By)$)VewYIg-~m1$2{M9xV4u*B z!jGVn1qp&ra76^}{DJ^#Bv=bOF}OVA3L{j!C}b?$5hgqX(hQA+g|Kfy#B~veNWe>Q zK&;QhF-Tk0tyBT^$>hEchs#_Dy0Eb zx)%Sl4NtaP#crPK$zr8lY_yxr^_D1hd!5df+z`R5bxqC~%bS2iW~dp9ywOv4>0jE_yu>_E_Ru#SX