From 4e9cb2b29645cb9ca7b20173d02dbfdcbda9734e Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 23 Feb 2016 12:19:44 +0100 Subject: Remove obsolete HintSequence class --- server/hints.py | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'server') diff --git a/server/hints.py b/server/hints.py index 9652ca2..bd4283d 100644 --- a/server/hints.py +++ b/server/hints.py @@ -27,22 +27,6 @@ class Hint(object): def instantiate(self, hint, prev_hints): pass -# Hint sequence: static type, but each time a hint is sent, increase the -# message index until the last message is reached, then repeat that. -# NOTE not used, check if we can remove this -class HintSequence(Hint): - def __init__(self, name, length): - self.name = name - self.length = length - - def instantiate(self, hint, prev_hints): - index = 0 - for prev_hint in prev_hints: - if prev_hint['id'] == self.name: - index = max(index, prev_hint['indices'][0]+1) - index = min(index, self.length-1) - hint['indices'] = [index] - # Popup hints: don't do anything on instantiation. class HintPopup(Hint): hint_type = 'popup' -- cgit v1.2.1