diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-26 22:26:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 09:56:05 +0100 |
commit | 012072ebd70a2180918864818f522944e46adf07 (patch) | |
tree | ba33e6c949b52aa7f61ef410f809c817fea5c328 /vcl | |
parent | eb71f3d572b6e1c24a072bd2fcd9c29e08113d32 (diff) |
valgrind: various unused code
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/unx/glyphcache.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/vcl/bitmapex.hxx | 3 | ||||
-rw-r--r-- | vcl/source/gdi/bitmapex.cxx | 7 | ||||
-rw-r--r-- | vcl/unx/generic/glyphs/glyphcache.cxx | 14 |
4 files changed, 0 insertions, 25 deletions
diff --git a/vcl/inc/unx/glyphcache.hxx b/vcl/inc/unx/glyphcache.hxx index 164bc0cbffed..e46fba2de3f5 100644 --- a/vcl/inc/unx/glyphcache.hxx +++ b/vcl/inc/unx/glyphcache.hxx @@ -211,7 +211,6 @@ public: int GetGlyphKernValue( int, int ) const; const ImplFontCharMap* GetImplFontCharMap() const; bool GetFontCapabilities(vcl::FontCapabilities &) const; - Point TransformPoint( const Point& ) const; GlyphData& GetGlyphData( int nGlyphIndex ); const GlyphMetric& GetGlyphMetric( int nGlyphIndex ) diff --git a/vcl/inc/vcl/bitmapex.hxx b/vcl/inc/vcl/bitmapex.hxx index 9a6259fa61eb..c9e462723169 100644 --- a/vcl/inc/vcl/bitmapex.hxx +++ b/vcl/inc/vcl/bitmapex.hxx @@ -95,9 +95,6 @@ public: const Point& rDestPt ) const; void Draw( OutputDevice* pOutDev, const Point& rDestPt, const Size& rDestSize ) const; - void Draw( OutputDevice* pOutDev, - const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPtPixel, const Size& rSrcSizePixel ) const; sal_Bool IsTransparent() const; TransparentType GetTransparentType() const { return eTransparent; } diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx index 2e77b666f8c8..584eacf2c360 100644 --- a/vcl/source/gdi/bitmapex.cxx +++ b/vcl/source/gdi/bitmapex.cxx @@ -723,13 +723,6 @@ void BitmapEx::Draw( OutputDevice* pOutDev, // ------------------------------------------------------------------ -void BitmapEx::Draw( OutputDevice* pOutDev, - const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPtPixel, const Size& rSrcSizePixel ) const -{ - pOutDev->DrawBitmapEx( rDestPt, rDestSize, rSrcPtPixel, rSrcSizePixel, *this ); -} - BitmapEx BitmapEx:: AutoScaleBitmap(BitmapEx & aBitmap, const long aStandardSize) { Point aEmptyPoint(0,0); diff --git a/vcl/unx/generic/glyphs/glyphcache.cxx b/vcl/unx/generic/glyphs/glyphcache.cxx index 51614966a68d..5322b6502310 100644 --- a/vcl/unx/generic/glyphs/glyphcache.cxx +++ b/vcl/unx/generic/glyphs/glyphcache.cxx @@ -406,20 +406,6 @@ void ServerFont::GarbageCollect( long nMinLruIndex ) } } -// ----------------------------------------------------------------------- - -Point ServerFont::TransformPoint( const Point& rPoint ) const -{ - if( mnCos == 0x10000 ) - return rPoint; - // TODO: use 32x32=>64bit intermediate - const double dCos = mnCos * (1.0 / 0x10000); - const double dSin = mnSin * (1.0 / 0x10000); - long nX = (long)(rPoint.X() * dCos + rPoint.Y() * dSin); - long nY = (long)(rPoint.Y() * dCos - rPoint.X() * dSin); - return Point( nX, nY ); -} - bool ServerFont::IsGlyphInvisible( int nGlyphIndex ) { if (!mbCollectedZW) |