summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 22:14:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-25 09:04:26 +0200
commit1b694dad643334ec1bab3f823dcd68f44a05ebe3 (patch)
treec1b6045ae9d5497e2d28642b95b2d88f9cc14d81 /svx/source/xoutdev
parentde2ac128da025502c533f8cede5862e054dd9c44 (diff)
loplugin:unusedmethods
Change-Id: Iaaf9092ec4d6189492906648b84494d087fed81f Reviewed-on: https://gerrit.libreoffice.org/41539 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/xoutdev')
-rw-r--r--svx/source/xoutdev/xattrbmp.cxx57
1 files changed, 0 insertions, 57 deletions
diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx
index f5a4ef086ccd..0c02ff92896a 100644
--- a/svx/source/xoutdev/xattrbmp.cxx
+++ b/svx/source/xoutdev/xattrbmp.cxx
@@ -213,63 +213,6 @@ bool isHistorical8x8(const BitmapEx& rBitmapEx, BitmapColor& o_rBack, BitmapColo
return bRet;
}
-GraphicObject XFillBitmapItem::makeGraphicObject(SvStream& rIn, sal_uInt16 nVer) const
-{
- if (!IsIndex())
- {
- if(0 == nVer)
- {
- // work with the old bitmap
- Bitmap aBmp;
-
- ReadDIB(aBmp, rIn, true);
- return Graphic(aBmp);
- }
- else if(1 == nVer)
- {
- sal_Int16 iTmp;
-
- rIn.ReadInt16( iTmp ); // former XBitmapStyle
- rIn.ReadInt16( iTmp ); // XBitmapType
-
- if(XBitmapType::Import == (XBitmapType)iTmp)
- {
- Bitmap aBmp;
-
- ReadDIB(aBmp, rIn, true);
- return Graphic(aBmp);
- }
- else if(XBitmapType::N8x8 == (XBitmapType)iTmp)
- {
- sal_uInt16 aArray[64];
-
- for(sal_uInt16 & i : aArray)
- {
- rIn.ReadUInt16( i );
- }
-
- Color aColorPix;
- Color aColorBack;
-
- ReadColor( rIn, aColorPix );
- ReadColor( rIn, aColorBack );
-
- const Bitmap aBitmap(createHistorical8x8FromArray(aArray, aColorPix, aColorBack));
-
- return Graphic(aBitmap);
- }
- }
- else if(2 == nVer)
- {
- BitmapEx aBmpEx;
-
- ReadDIBBitmapEx(aBmpEx, rIn);
- return Graphic(aBmpEx);
- }
- }
- return GraphicObject();
-}
-
XFillBitmapItem::XFillBitmapItem(const GraphicObject& rGraphicObject)
: NameOrIndex(XATTR_FILLBITMAP, -1)
, maGraphicObject(rGraphicObject)