[Libreoffice-commits] .: unusedcode.easy vcl/inc vcl/source
Michael Meeks
michael at kemper.freedesktop.org
Fri Feb 17 13:50:44 PST 2012
unusedcode.easy | 7 ----
vcl/inc/vcl/pdfextoutdevdata.hxx | 62 ------------------------------------
vcl/source/gdi/pdfextoutdevdata.cxx | 35 --------------------
vcl/source/helper/lazydelete.cxx | 8 ----
4 files changed, 112 deletions(-)
New commits:
commit b4d4751ec0ff0c34f8cf0f1c8770badef81c007c
Author: Szabolcs Dezsi <dezsiszabi at hotmail.com>
Date: Thu Feb 16 17:02:13 2012 +0100
Removed unused code from vcl module
diff --git a/unusedcode.easy b/unusedcode.easy
index bcd3d7c..78c00f0 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1357,11 +1357,4 @@ ucbhelper::ContentBroker::ContentBroker(com::sun::star::uno::Reference<com::sun:
ucbhelper::SimpleCertificateValidationRequest::getResponse() const
utl::OConfigurationNode::appendNode(rtl::OUString const&, utl::OConfigurationNode const&) const
utl::TransliterationWrapper::compareSubstring(String const&, int, int, String const&, int, int) const
-vcl::LazyDeletor<Menu>::is_less(Menu*, Menu*)
-vcl::PDFExtOutDevData::EndGroup()
-vcl::PDFExtOutDevData::GetFormsFormat() const
-vcl::PDFExtOutDevData::SetAutoAdvanceTime(unsigned int, int)
-vcl::PDFExtOutDevData::SetOutlineItemDest(int, int)
-vcl::PDFExtOutDevData::SetOutlineItemParent(int, int)
-vcl::PDFExtOutDevData::SetOutlineItemText(int, rtl::OUString const&)
vcl::PDFWriter::DrawPixel(Polygon const&, Color const*)
diff --git a/vcl/inc/vcl/pdfextoutdevdata.hxx b/vcl/inc/vcl/pdfextoutdevdata.hxx
index c1be576..665303b 100644
--- a/vcl/inc/vcl/pdfextoutdevdata.hxx
+++ b/vcl/inc/vcl/pdfextoutdevdata.hxx
@@ -131,7 +131,6 @@ public :
sal_Bool GetIsExportFormFields() const;
void SetIsExportFormFields( const sal_Bool bExportFormFields );
- sal_Int32 GetFormsFormat() const;
void SetFormsFormat( const sal_Int32 nFormsFormat );
sal_Bool GetIsExportBookmarks() const;
@@ -166,13 +165,6 @@ public :
/** End render output
- This method ends grouped render output without
- further actions.
- */
- void EndGroup();
-
- /** End render output
-
This method ends grouped render output, that can be
represented by a GfxLink. This is typically used for
external graphic files, such as JPEGs, EPS files etc.
@@ -321,49 +313,6 @@ public :
*/
sal_Int32 CreateOutlineItem( sal_Int32 nParent = 0, const rtl::OUString& rText = rtl::OUString(), sal_Int32 nDestID = -1 );
- /** Set an outline item's parent
-
- @param nItem
- specififies which item should be reparented.
-
- @param nNewParent
- specifies which outline item will be the item's new parent.
- Use 0 for reparenting to top level.
-
- @returns
- -1 if the item does not exist
- -2 if the new parent does not exist, item will be reparented to top level.
- */
- sal_Int32 SetOutlineItemParent( sal_Int32 nItem, sal_Int32 nNewParent );
-
- /** Set an outline item's title text
-
- @param nItem
- specififies which item should get a new text
-
- @param rText
- sets the title text of the item
-
- @returns
- 0 if the item exists and the text was changed
- -1 if the item does not exist
- */
- sal_Int32 SetOutlineItemText( sal_Int32 nItem, const rtl::OUString& rText );
-
- /** Set an outline item's destination
-
- @param nItem
- specififies which item should get a new dest
-
- @param nDestID
- specifies the item's new destination
-
- @returns
- -1 if the item does not exist
- -2 if the new dest does not exist, dest will remain unchanged
- */
- sal_Int32 SetOutlineItemDest( sal_Int32 nItem, sal_Int32 nDestID );
-
/** Create a new note on a page
@param rRect
@@ -518,17 +467,6 @@ public :
*/
void SetAlternateText( const String& rText );
- /** Sets the time in seconds a page will appear before the next
- page is shown automatically
-
- @param nSeconds
- time in seconds the current page will be shown; pass 0 for manual advancement
-
- @param nPageNr
- the page number to apply the autoadvance time to; -1 denotes the current page
- */
- void SetAutoAdvanceTime( sal_uInt32 nSeconds, sal_Int32 nPageNr = -1 );
-
/** Sets the transitional effect to be applied when the current page gets shown.
@param eType
diff --git a/vcl/source/gdi/pdfextoutdevdata.cxx b/vcl/source/gdi/pdfextoutdevdata.cxx
index 23d81a4..b917a0a 100644
--- a/vcl/source/gdi/pdfextoutdevdata.cxx
+++ b/vcl/source/gdi/pdfextoutdevdata.cxx
@@ -599,10 +599,6 @@ void PDFExtOutDevData::SetIsExportFormFields( const sal_Bool bExportFomtFields )
{
mbExportFormFields = bExportFomtFields;
}
-sal_Int32 PDFExtOutDevData::GetFormsFormat() const
-{
- return mnFormsFormat;
-}
void PDFExtOutDevData::SetFormsFormat( const sal_Int32 nFormsFormat )
{
mnFormsFormat = nFormsFormat;
@@ -721,27 +717,6 @@ sal_Int32 PDFExtOutDevData::CreateOutlineItem( sal_Int32 nParent, const rtl::OUS
mpGlobalSyncData->mParaInts.push_back( nDestID );
return mpGlobalSyncData->mCurId++;
}
-sal_Int32 PDFExtOutDevData::SetOutlineItemParent( sal_Int32 nItem, sal_Int32 nNewParent )
-{
- mpGlobalSyncData->mActions.push_back( PDFExtOutDevDataSync::SetOutlineItemParent );
- mpGlobalSyncData->mParaInts.push_back( nItem );
- mpGlobalSyncData->mParaInts.push_back( nNewParent );
- return 0;
-}
-sal_Int32 PDFExtOutDevData::SetOutlineItemText( sal_Int32 nItem, const rtl::OUString& rText )
-{
- mpGlobalSyncData->mActions.push_back( PDFExtOutDevDataSync::SetOutlineItemText );
- mpGlobalSyncData->mParaInts.push_back( nItem );
- mpGlobalSyncData->mParaOUStrings.push_back( rText );
- return 0;
-}
-sal_Int32 PDFExtOutDevData::SetOutlineItemDest( sal_Int32 nItem, sal_Int32 nDestID )
-{
- mpGlobalSyncData->mActions.push_back( PDFExtOutDevDataSync::SetOutlineItemDest );
- mpGlobalSyncData->mParaInts.push_back( nItem );
- mpGlobalSyncData->mParaInts.push_back( nDestID );
- return 0;
-}
void PDFExtOutDevData::CreateNote( const Rectangle& rRect, const PDFNote& rNote, sal_Int32 nPageNr )
{
mpGlobalSyncData->mActions.push_back( PDFExtOutDevDataSync::CreateNote );
@@ -750,12 +725,6 @@ void PDFExtOutDevData::CreateNote( const Rectangle& rRect, const PDFNote& rNote,
mpGlobalSyncData->mParaPDFNotes.push_back( rNote );
mpGlobalSyncData->mParaInts.push_back( nPageNr == -1 ? mnPage : nPageNr );
}
-void PDFExtOutDevData::SetAutoAdvanceTime( sal_uInt32 nSeconds, sal_Int32 nPageNr )
-{
- mpGlobalSyncData->mActions.push_back( PDFExtOutDevDataSync::SetAutoAdvanceTime );
- mpGlobalSyncData->mParauInts.push_back( nSeconds );
- mpGlobalSyncData->mParaInts.push_back( nPageNr == -1 ? mnPage : nPageNr );
-}
void PDFExtOutDevData::SetPageTransition( PDFWriter::PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr )
{
mpGlobalSyncData->mActions.push_back( PDFExtOutDevDataSync::SetPageTransition );
@@ -841,10 +810,6 @@ void PDFExtOutDevData::BeginGroup()
mpPageSyncData->PushAction( mrOutDev, PDFExtOutDevDataSync::BeginGroup );
}
-void PDFExtOutDevData::EndGroup()
-{
- mpPageSyncData->PushAction( mrOutDev, PDFExtOutDevDataSync::EndGroup );
-}
void PDFExtOutDevData::EndGroup( const Graphic& rGraphic,
sal_uInt8 nTransparency,
const Rectangle& rOutputRect,
diff --git a/vcl/source/helper/lazydelete.cxx b/vcl/source/helper/lazydelete.cxx
index 691ab1d..d63466e 100644
--- a/vcl/source/helper/lazydelete.cxx
+++ b/vcl/source/helper/lazydelete.cxx
@@ -70,14 +70,6 @@ template<> bool LazyDeletor<Window>::is_less( Window* left, Window* right )
return (left != right && right->IsChild( left, sal_True )) ? true : false;
}
-// specialized is_less function for Menu
-template<> bool LazyDeletor<Menu>::is_less( Menu* left, Menu* right )
-{
- while( left && left != right )
- left = left->ImplGetStartedFrom();
- return left != NULL;
-}
-
DeleteOnDeinitBase::~DeleteOnDeinitBase()
{
ImplSVData* pSVData = ImplGetSVData();
More information about the Libreoffice-commits
mailing list