summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/hints.py16
1 files changed, 0 insertions, 16 deletions
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'