summaryrefslogtreecommitdiff
path: root/sqlparse/utils.py
diff options
context:
space:
mode:
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)