diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-22 09:20:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-22 12:50:48 +0100 |
commit | b37e2dd071c83454b3b06c0959a76b6012f53abb (patch) | |
tree | 91de7e6d0c01e7391276a1142d9d1b2f503ab35a /solenv | |
parent | b9eaa646815bf9b400ecc0d5726de5241428cf34 (diff) |
Resolves: fdo#38838 remove UniString
hammer silver nails into coffin and bury in concrete
Change-Id: I3fda2ff47738bb33793adab97faba2d439ac9a28
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gdb/libreoffice/tl.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/solenv/gdb/libreoffice/tl.py b/solenv/gdb/libreoffice/tl.py index 7c18a9555434..15e539883501 100644 --- a/solenv/gdb/libreoffice/tl.py +++ b/solenv/gdb/libreoffice/tl.py @@ -10,27 +10,6 @@ import gdb from libreoffice.util import printing -from libreoffice.util.string import StringPrinterHelper - -class StringPrinter(StringPrinterHelper): - '''Prints ByteString or UniString''' - - def __init__(self, typename, val, encoding = None): - super(StringPrinter, self).__init__(typename, val, encoding) - - def valid(self): - data = self.val['mpData'] - # mnRefCount is not a good indicator: it seems there could be - # cases where it is negative (-7FFFFFED) - return data #and data.dereference()['mnRefCount'] > 0 - - def data(self): - assert self.val['mpData'] - return self.val['mpData'].dereference()['maStr'] - - def length(self): - assert self.val['mpData'] - return self.val['mpData'].dereference()['mnLen'] class BigIntPrinter(object): '''Prints big integer''' @@ -377,10 +356,6 @@ def build_pretty_printers(): printer = printing.Printer('libreoffice/tl') - # old-style strings - printer.add('ByteString', StringPrinter) - printer.add('String', lambda name, val: StringPrinter(name, val, 'utf-16')) - # old-style containers printer.add('DynArray', LinearContainerPrinter) printer.add('List', LinearContainerPrinter) |