[Libreoffice-commits] core.git: writerfilter/source

Miklos Vajna vmiklos at collabora.co.uk
Thu Oct 31 23:00:04 CET 2013


 writerfilter/source/doctok/WW8FontTable.cxx |   25 -------------------------
 writerfilter/source/doctok/resources.xmi    |    3 ---
 2 files changed, 28 deletions(-)

New commits:
commit 86ecd9560fe5666cd8814f513b80de7c67d1cbce
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Oct 31 22:57:09 2013 +0100

    writerfilter: remove unused WW8FontTable class in doctok
    
    Change-Id: I649e21460ad00b2a364a8adc91061ba95a6623d9

diff --git a/writerfilter/source/doctok/WW8FontTable.cxx b/writerfilter/source/doctok/WW8FontTable.cxx
index 95fc233..8c439ab 100644
--- a/writerfilter/source/doctok/WW8FontTable.cxx
+++ b/writerfilter/source/doctok/WW8FontTable.cxx
@@ -22,31 +22,6 @@
 namespace writerfilter {
 namespace doctok {
 
-sal_uInt32 WW8FontTable::getEntryCount()
-{
-    return entryOffsets.size() - 1;
-}
-
-writerfilter::Reference<Properties>::Pointer_t
-WW8FontTable::getEntry(sal_uInt32 nIndex)
-{
-    writerfilter::Reference<Properties>::Pointer_t pResult;
-
-    sal_uInt32 nCount = entryOffsets[nIndex + 1] - entryOffsets[nIndex];
-
-    if (nCount > 1)
-    {
-        WW8Font * pFont = new WW8Font(this,
-                                      entryOffsets[nIndex], nCount);
-
-        pFont->setIndex(nIndex);
-
-        pResult = writerfilter::Reference<Properties>::Pointer_t(pFont);
-    }
-
-    return pResult;
-}
-
 sal_uInt32 WW8Font::get_f()
 {
     return mnIndex;
diff --git a/writerfilter/source/doctok/resources.xmi b/writerfilter/source/doctok/resources.xmi
index a6a68c6..40a694e 100644
--- a/writerfilter/source/doctok/resources.xmi
+++ b/writerfilter/source/doctok/resources.xmi
@@ -3125,9 +3125,6 @@
         <!--Class FontTable-->
         <UML:Class xmi.id="FontTable" name="FontTable">
           <UML:ModelElement.stereotype>
-            <UML:Stereotype xmi.idref="ww8resource"/>
-          </UML:ModelElement.stereotype>
-          <UML:ModelElement.stereotype>
             <UML:Stereotype xmi.idref="ww8nopayloadoffset"/>
           </UML:ModelElement.stereotype>
           <UML:ModelElement.stereotype>


More information about the Libreoffice-commits mailing list