From d9e3656224fd6cfcfae3f636e3e82d5d4cc08795 Mon Sep 17 00:00:00 2001 From: Diego Sarmentero Date: Mon, 22 Apr 2013 22:39:53 -0300 Subject: [PATCH] removing unnecesary code --- ninja_ide/gui/explorer/tree_projects_widget.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ninja_ide/gui/explorer/tree_projects_widget.py b/ninja_ide/gui/explorer/tree_projects_widget.py index c953b990b..3129ffc82 100644 --- a/ninja_ide/gui/explorer/tree_projects_widget.py +++ b/ninja_ide/gui/explorer/tree_projects_widget.py @@ -819,14 +819,6 @@ def __init__(self, parent, _name, path): self.update_paths() self.addedToConsole = False - def __lt__(self, otherItem): - column = self.treeWidget().sortColumn() - my_text = ('1%s' % self.text(column).lower() if - self.isFolder else '0%s' % self.text(column).lower()) - other_text = ('1%s' % otherItem.text(column).lower() if - otherItem.isFolder else '0%s' % otherItem.text(column).lower()) - return my_text < other_text - def update_paths(self): for path in self.related_projects: completion_daemon.add_project_folder(path)