summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-23 12:19:44 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-23 12:19:44 +0100
commit4e9cb2b29645cb9ca7b20173d02dbfdcbda9734e (patch)
treeb3fdbb665048044b611c8ec073a58be45c48a8f4 /server
parent1eef1801d06c0f0401500d824577384ee0cf507b (diff)
Remove obsolete HintSequence class
Diffstat (limited to 'server')
-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'