diff -r dd1c7ed6d880 -r 78e4a6823a98 RefactoringRope/CodeAssistServer.py --- a/RefactoringRope/CodeAssistServer.py Sun Nov 11 19:43:56 2018 +0100 +++ b/RefactoringRope/CodeAssistServer.py Mon Nov 12 19:03:47 2018 +0100 @@ -864,79 +864,3 @@ Private slot to handle the projectClosed signal. """ self.stopClient(idString=CodeAssistServer.IdProject) - - ####################################################################### - ## Methods below handle setting/unsetting the hook methods - ####################################################################### - -## def connectEditor(self, editor): -## """ -## Public method to connect an editor. -## -## @param editor reference to the editor -## @type QScintilla.Editor.Editor -## """ -## # TODO: special treatment for project files -## if self.isSupportedLanguage(editor.getLanguage()): -## if self.__plugin.getPreferences("CodeAssistEnabled") and \ -## editor.getCompletionListHook("rope") is None: -## self.__setAutoCompletionHook(editor) -## if self.__plugin.getPreferences("CodeAssistCalltipsEnabled") and \ -## editor.getCallTipHook("rope") is None: -## self.__setCalltipsHook(editor) -## else: -## self.disconnectEditor(editor) -## -## def disconnectEditor(self, editor): -## """ -## Public method to disconnect an editor. -## -## @param editor reference to the editor -## @type QScintilla.Editor.Editor -## """ -## if editor.getCompletionListHook("rope"): -## self.__unsetAutoCompletionHook(editor) -## if editor.getCallTipHook("rope"): -## self.__unsetCalltipsHook(editor) -## -## def __setAutoCompletionHook(self, editor): -## """ -## Private method to set the auto-completion hook. -## -## @param editor reference to the editor -## @type QScintilla.Editor.Editor -## """ -## try: -## editor.addCompletionListHook("rope", self.requestCompletions, True) -## self.__asyncCompletions = True -## except TypeError: -## # backward compatibility for eric6 before 17.11 -## editor.addCompletionListHook("rope", self.getCompletions) -## self.__asyncCompletions = False -## -## def __unsetAutoCompletionHook(self, editor): -## """ -## Private method to unset the auto-completion hook. -## -## @param editor reference to the editor -## @type QScintilla.Editor.Editor -## """ -## editor.removeCompletionListHook("rope") -## -## def __setCalltipsHook(self, editor): -## """ -## Private method to set the calltip hook. -## -## @param editor reference to the editor -## @type QScintilla.Editor.Editor -## """ -## editor.addCallTipHook("rope", self.getCallTips) -## -## def __unsetCalltipsHook(self, editor): -## """ -## Private method to unset the calltip hook. -## -## @param editor reference to the editor -## @type QScintilla.Editor.Editor -## """ -## editor.removeCallTipHook("rope")