summaryrefslogtreecommitdiff
path: root/sqlparse/utils.py
diff options
context:
space:
mode:
authorVictor Uriarte <victor.m.uriarte@intel.com>2016-06-13 21:50:17 -0700
committerVictor Uriarte <victor.m.uriarte@intel.com>2016-06-15 13:29:11 -0700
commit711744d1664f8244d8ab0b090cbf12e923101cce (patch)
treeb7931f1f9445ee27b619164c5f26e9c32bf5470b /sqlparse/utils.py
parenta795be1a70a241e177227b742269fb2df88af962 (diff)
downloadsqlparse-711744d1664f8244d8ab0b090cbf12e923101cce.tar.gz
Remove functions no-longer used
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 59301ff..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) if not isinstance(token, int) else 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)