diff --git a/src/pylorax/ltmpl.py b/src/pylorax/ltmpl.py index b7196e28..e0268ef1 100644 --- a/src/pylorax/ltmpl.py +++ b/src/pylorax/ltmpl.py @@ -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:])