Markov: remove unused _get_chain_beginnings

This commit is contained in:
Brian S. Stephan 2011-04-23 20:59:26 -05:00
parent 7f922dd2c9
commit 6ef7865dba
1 changed files with 0 additions and 18 deletions

View File

@ -368,24 +368,6 @@ class Markov(Module):
print('sqlite error: ' + str(e))
raise
def _get_chain_beginnings(self):
"""Get all of the first (real) words in the brain."""
values = []
try:
db = self.get_db()
query = 'SELECT v FROM markov_chain WHERE k1 = "__start1" AND k2 = "__start2"'
cursor = db.execute(query)
results = cursor.fetchall()
for result in results:
values.append(result['v'])
return values
except sqlite3.Error as e:
print('sqlite error: ' + str(e))
raise
def _get_context_for_target(self, target):
"""Get the context for a channel/nick, if defined."""