Remove unused __str__ methods
authorJeremy Kerr <jk@ozlabs.org>
Sun, 19 Nov 2006 11:23:38 +0000 (22:23 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 12 Nov 2009 23:58:38 +0000 (10:58 +1100)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
bitfield

index 1152067ebe1199c703779f8c6c61ff1afbe9da3e..e9be554734bb9ba37613cf9a4b3ca5ffafe41387 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -47,10 +47,6 @@ class bitfield:
                        return self.values[value]
                return None
 
-       def __str__(self):
-               return "[%2d:%-2d] %s 0x%x" % (int(self.start_bit),
-                       int(self.end_bit), self.name, self.mask())
-
        @staticmethod
        def parse_bitfield(line):
                a = line.split(None, 1)
@@ -98,12 +94,6 @@ class register:
                                        % (name_width, field.name, v)
                return str
 
-       def __str__(self):
-               str = self.name + "\n"
-               for f in self.fields:
-                       str += "\t%s\n" % f
-               return str
-
 def list_regs(regs):
        for (id, r) in regs.iteritems():
                print "%18s : %s" % (id, r.name)