summaryrefslogtreecommitdiff
path: root/sqlparse/utils.py
diff options
context:
space:
mode:
authorVik <vmuriart@gmail.com>2016-06-16 02:33:28 -0700
committerGitHub <noreply@github.com>2016-06-16 02:33:28 -0700
commit92b5f2bb88ed1c1080ecf7eb7449f5c642ae196a (patch)
tree30b53c5970fc01fab5a14c9a0298f4e8d4eba077 /sqlparse/utils.py
parent451d6d5d380cb4246c47e374aa9c4034fc7f9805 (diff)
parent9fcf1f2cda629cdf11a8a4ac596fb7cae0e89de9 (diff)
downloadsqlparse-92b5f2bb88ed1c1080ecf7eb7449f5c642ae196a.tar.gz
Merge pull request #260 from vmuriart/long_live_indexes
Long live indexes - Improve performance
Diffstat (limited to 'sqlparse/utils.py')
-rw-r--r--sqlparse/utils.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/sqlparse/utils.py b/sqlparse/utils.py
index 4a8646d..c3542b8 100644
--- a/sqlparse/utils.py
+++ b/sqlparse/utils.py
@@ -103,18 +103,6 @@ def imt(token, i=None, m=None, t=None):
return False
-def find_matching(tlist, token, open_pattern, close_pattern):
- idx = tlist.token_index(token)
- depth = 0
- for token in tlist.tokens[idx:]:
- if token.match(*open_pattern):
- depth += 1
- elif token.match(*close_pattern):
- depth -= 1
- if depth == 0:
- return token
-
-
def consume(iterator, n):
"""Advance the iterator n-steps ahead. If n is none, consume entirely."""
deque(itertools.islice(iterator, n), maxlen=0)