remove unused LoraxTemplate.getdata()

This commit is contained in:
Will Woods 2011-06-08 17:32:38 -04:00
parent 6ad14ea42b
commit 2096ebc551

View File

@ -58,11 +58,3 @@ class LoraxTemplate(object):
self.lines = lines
return lines
def getdata(self, cmd, mode="tokens"):
'''returns a generator that yields every token on every line starting
with 'cmd'. if mode is "lines", you get a list for each line instead.'''
if mode == "lines":
return (f[1:] for f in self.lines if f[0]==cmd)
else:
return (i for f in self.lines if f[0]==cmd for i in f[1:])