Commits

Anonymous committed c9ac12a

pyscopes: removed _HoldingScopeFinder.get_location()

  • Participants
  • Parent commits 7e128cc

Comments (0)

Files changed (1)

File rope/base/pyscopes.py

         return rope.base.codeanalyze.count_line_indents(
             self.lines.get_line(lineno))
 
-    def get_location(self, offset):
-        current_pos = 0
-        lineno = 1
-        while current_pos + len(self.lines.get_line(lineno)) < offset:
-            current_pos += len(self.lines.get_line(lineno)) + 1
-            lineno += 1
-        return (lineno, offset - current_pos)
-
     def _get_scope_indents(self, scope):
         return self.get_indents(scope.get_start())