From 453764938f2db40593feb9ce2a85e5a2147909af Mon Sep 17 00:00:00 2001 From: Victor Uriarte Date: Thu, 2 Jun 2016 12:29:38 -0700 Subject: Remove unused code from tokens.py --- sqlparse/tokens.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'sqlparse') diff --git a/sqlparse/tokens.py b/sqlparse/tokens.py index aa0b335..4d5f30e 100644 --- a/sqlparse/tokens.py +++ b/sqlparse/tokens.py @@ -13,15 +13,6 @@ class _TokenType(tuple): parent = None - def split(self): - buf = [] - node = self - while node is not None: - buf.append(node) - node = node.parent - buf.reverse() - return buf - def __contains__(self, val): return val is not None and (self is val or val[:len(self)] == self) @@ -74,8 +65,3 @@ DML = Keyword.DML DDL = Keyword.DDL CTE = Keyword.CTE Command = Keyword.Command - -Group = Token.Group -Group.Parenthesis = Token.Group.Parenthesis -Group.Comment = Token.Group.Comment -Group.Where = Token.Group.Where -- cgit v1.2.1