Skip to content

Commit f130c98

Browse files
author
Andrew Lapp
committed
remove dead code
1 parent 4f31fc0 commit f130c98

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

vllm/grammar.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def cached_method(*args, **kwargs):
141141
return wrapped_func
142142
return decorator
143143

144+
144145
memoize_by_instance = method_lru_cache(int(1e7))
145146

146147

@@ -332,12 +333,6 @@ def get_best_matched_terminal(self, seq):
332333

333334
return None, None, None
334335

335-
def get_partial_terminal_ids(self, checked_terminals, seq):
336-
return set([
337-
term for term in checked_terminals
338-
if self._seq_validator[term](seq)[0] is not None
339-
])
340-
341336
@memoize_by_instance
342337
def get_stepped_parser_state(self, new_token_str):
343338
ip = copy(self.interactive_parser)

0 commit comments

Comments
 (0)