Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi,

This is my first patch.

I'm trying to remove unusedcode.easy but i cannot find a lot of
function ( i'm searching by opengrok ).

I have to remove also form unusedcode.easy the function removed ?
From d3dbf7bfb75e206d2bfb2cc27e15479b7640ae3e Mon Sep 17 00:00:00 2001
From: Emanuele Fia <emanuele.fia@laptop>
Date: Wed, 2 Nov 2011 18:54:01 +0100
Subject: [PATCH] Removed IsGreyPalette

---
 unusedcode.easy           |   45 ++++++++++++++++++++++-----------------------
 vcl/source/gdi/bitmap.cxx |   20 --------------------
 2 files changed, 22 insertions(+), 43 deletions(-)

diff --git a/unusedcode.easy b/unusedcode.easy
index 319cb24..02f44cd 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1,28 +1,27 @@
 (anonymous namespace)::getState(std::__debug::vector<cppcanvas::internal::OutDevState, 
std::allocator<cppcanvas::internal::OutDevState> > const&)
 (anonymous 
namespace)::writeInfo(com::sun::star::uno::Reference<com::sun::star::registry::XRegistryKey> 
const&, rtl::OUString const&, rtl::OUString const&)
-AtomDocument::AtomDocument(AtomPubSession*, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >)
-AtomFolder::AtomFolder(AtomPubSession*, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >)
-AtomPubSession::getCollectionUrl(Collection::Type)
-AtomPubSession::~AtomPubSession()
-BitmapPalette::IsGreyPalette() const
-BufferNode::childAt(int) const
-ByteString::Assign(char const*, unsigned short)
-ByteString::Assign(char)
-CAT::Inverse() const
-CAT::makeChromaticAdaptationTag() const
-CIccCmm::FromInternalEncoding(icColorSpaceSignature, unsigned char*, float const*)
-CIccCmm::FromInternalEncoding(icColorSpaceSignature, unsigned short*, float const*)
-CIccCmm::GetFloatColorEncoding(char const*)
-CIccCmm::GetFloatColorEncoding(icFloatColorEncoding)
-CIccCmm::IsInGamut(float*)
-CIccCmm::ToInternalEncoding(icColorSpaceSignature, float*, unsigned char const*)
-CIccCmm::ToInternalEncoding(icColorSpaceSignature, float*, unsigned short const*)
-CIccFormulaCurveSegment::SetFunction(unsigned short, unsigned char, float*)
-CIccIO::ReadLine(void*, int)
-CIccInfo::GetSpotShapeName(icSpotShape)
-CIccMBB::NewCLUT(unsigned char*, unsigned char)
-CIccMemIO::Alloc(unsigned int, bool)
-CIccMpeCLUT::SetCLUT(CIccCLUT*)
+AtomDocument::AtomDocument(AtomPubSession*, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >) #not found
+AtomFolder::AtomFolder(AtomPubSession*, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >) #not found
+AtomPubSession::getCollectionUrl(Collection::Type) # not found 
+AtomPubSession::~AtomPubSession() # not found 
+BufferNode::childAt(int) const # may be const BufferNode* childAt(sal_Int32 nIndex) const; ?
+ByteString::Assign(char const*, unsigned short) #not found
+ByteString::Assign(char) # not found
+CAT::Inverse() const # not found
+CAT::makeChromaticAdaptationTag() const #not found
+CIccCmm::FromInternalEncoding(icColorSpaceSignature, unsigned char*, float const*) #not found 
+CIccCmm::FromInternalEncoding(icColorSpaceSignature, unsigned short*, float const*) # not found
+CIccCmm::GetFloatColorEncoding(char const*) #not found 
+CIccCmm::GetFloatColorEncoding(icFloatColorEncoding) # not found 
+CIccCmm::IsInGamut(float*) # not found 
+CIccCmm::ToInternalEncoding(icColorSpaceSignature, float*, unsigned char const*) #not found 
+CIccCmm::ToInternalEncoding(icColorSpaceSignature, float*, unsigned short const*) #not found 
+CIccFormulaCurveSegment::SetFunction(unsigned short, unsigned char, float*) #not found 
+CIccIO::ReadLine(void*, int) #not found 
+CIccInfo::GetSpotShapeName(icSpotShape) #not found 
+CIccMBB::NewCLUT(unsigned char*, unsigned char) #not found 
+CIccMemIO::Alloc(unsigned int, bool) #not found 
+CIccMpeCLUT::SetCLUT(CIccCLUT*) #not found
 CIccMpeCreator::DoGetElementSigName(std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >&, icElemTypeSignature)
 CIccMpeCurveSet::SetCurve(int, CIccCurveSetCurve*)
 CIccMruCmm::Attach(CIccCmm*, unsigned char)
diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx
index 417ebf7..318ba68 100644
--- a/vcl/source/gdi/bitmap.cxx
+++ b/vcl/source/gdi/bitmap.cxx
@@ -230,26 +230,6 @@ const BitmapPalette& Bitmap::GetGreyPalette( int nEntries )
 
 // ------------------------------------------------------------------
 
-bool BitmapPalette::IsGreyPalette() const
-{
-    // TODO: add an IsGreyPalette flag to BitmapPalette
-    // TODO: unless this causes problems binary compatibility
-    const int nEntryCount = GetEntryCount();
-    if( !nEntryCount ) // NOTE: an empty palette means 1:1 mapping
-        return true;
-    // see above: only certain entry values will result in a valid call to GetGreyPalette
-    if( nEntryCount == 2 || nEntryCount == 4 || nEntryCount == 16 || nEntryCount == 256 )
-    {
-        const BitmapPalette& rGreyPalette = Bitmap::GetGreyPalette( nEntryCount );
-        if( rGreyPalette == *this )
-            return true;
-    }
-    // TODO: is it worth to compare the entries?
-    return false;
-}
-
-// ------------------------------------------------------------------
-
 Bitmap& Bitmap::operator=( const Bitmap& rBitmap )
 {
     maPrefSize = rBitmap.maPrefSize;
-- 
1.7.5.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.