From 2096ebc551e602781ed644fa9800a7a86c1e7c61 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Wed, 8 Jun 2011 17:32:38 -0400 Subject: [PATCH] remove unused LoraxTemplate.getdata() --- src/pylorax/ltmpl.py | 8 -------- 1 file changed, 8 deletions(-) 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:])