Markov: remove unused _get_chain_beginnings
This commit is contained in:
parent
7f922dd2c9
commit
6ef7865dba
@ -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."""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user