summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-17 09:20:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-17 09:55:42 +0100
commitd49d0139a7f4b9835a2179b6dcc6741a41b0197c (patch)
tree2c6aa787519162454e7ce0496ca3c7704a0117ec
parente03223d4c3cdc5d89598f0afefbd3eaee8a69736 (diff)
callcatcher: update unused code
Change-Id: I2ddda0600ee876e9886ee3221f0ac5ad515fbd22
-rw-r--r--include/svl/gridprinter.hxx6
-rw-r--r--svl/source/misc/gridprinter.cxx10
-rw-r--r--svtools/source/dialogs/roadmapwizard.cxx9
-rw-r--r--svtools/source/uno/unocontroltablemodel.cxx16
-rw-r--r--svtools/source/uno/unocontroltablemodel.hxx4
-rw-r--r--sw/UIConfig_swriter.mk1
-rw-r--r--sw/inc/editsh.hxx4
-rw-r--r--sw/source/core/edit/editsh.cxx8
-rw-r--r--sw/source/filter/ww8/docxsdrexport.cxx5
-rw-r--r--sw/source/filter/ww8/docxsdrexport.hxx2
-rw-r--r--sw/source/uibase/dbui/dbui.cxx35
-rw-r--r--sw/source/uibase/dbui/mmconfigitem.cxx18
-rw-r--r--sw/source/uibase/inc/dbui.hxx21
-rw-r--r--sw/source/uibase/inc/mmconfigitem.hxx2
-rw-r--r--sw/uiconfig/swriter/ui/mmcreatingdialog.ui116
-rw-r--r--unusedcode.easy5
-rw-r--r--writerfilter/source/dmapper/WrapPolygonHandler.cxx5
-rw-r--r--writerfilter/source/dmapper/WrapPolygonHandler.hxx2
18 files changed, 0 insertions, 269 deletions
diff --git a/include/svl/gridprinter.hxx b/include/svl/gridprinter.hxx
index d63adfcb2c0b..446072bcf2af 100644
--- a/include/svl/gridprinter.hxx
+++ b/include/svl/gridprinter.hxx
@@ -27,14 +27,8 @@ class SVL_DLLPUBLIC GridPrinter
public:
GridPrinter( size_t nRows, size_t nCols, bool bPrint = true );
~GridPrinter();
-
void set( size_t nRow, size_t nCol, const OUString& rStr );
-
void print( const char* pHeader ) const;
-
- void clear();
-
- void resize( size_t nRows, size_t nCols );
};
}
diff --git a/svl/source/misc/gridprinter.cxx b/svl/source/misc/gridprinter.cxx
index a47264970ae3..2cbadca0a8a9 100644
--- a/svl/source/misc/gridprinter.cxx
+++ b/svl/source/misc/gridprinter.cxx
@@ -126,16 +126,6 @@ void GridPrinter::print( const char* pHeader ) const
}
}
-void GridPrinter::clear()
-{
- mpImpl->maMatrix.clear();
-}
-
-void GridPrinter::resize( size_t nRows, size_t nCols )
-{
- mpImpl->maMatrix.resize(nRows, nCols);
-}
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/dialogs/roadmapwizard.cxx b/svtools/source/dialogs/roadmapwizard.cxx
index a1dc4f9883db..6e83474555ec 100644
--- a/svtools/source/dialogs/roadmapwizard.cxx
+++ b/svtools/source/dialogs/roadmapwizard.cxx
@@ -117,17 +117,8 @@ namespace svt
return nMinLength;
}
-
//= RoadmapWizard
-
-
#ifdef DBG_UTIL
- const char* CheckInvariants( const void* pVoid )
- {
- return static_cast< const RoadmapWizard* >( pVoid )->checkInvariants();
- }
-
-
const sal_Char* RoadmapWizard::checkInvariants() const
{
// all paths have to start with the same state
diff --git a/svtools/source/uno/unocontroltablemodel.cxx b/svtools/source/uno/unocontroltablemodel.cxx
index 16e7507b87d8..395737c90d68 100644
--- a/svtools/source/uno/unocontroltablemodel.cxx
+++ b/svtools/source/uno/unocontroltablemodel.cxx
@@ -123,26 +123,10 @@ namespace svt { namespace table
}
};
-
//= UnoControlTableModel
-
-#ifdef DBG_UTIL
- const char* UnoControlTableModel::checkInvariants() const
- {
- Reference< XGridDataModel > const xDataModel( m_pImpl->m_aDataModel );
- if ( !xDataModel.is() )
- return "data model anymore";
-
- // TODO: more?
-
- return NULL;
- }
-#endif
-
#define DBG_CHECK_ME() \
DBG_TESTSOLARMUTEX(); \
-
UnoControlTableModel::UnoControlTableModel()
:m_pImpl( new UnoControlTableModel_Impl )
{
diff --git a/svtools/source/uno/unocontroltablemodel.hxx b/svtools/source/uno/unocontroltablemodel.hxx
index db711d3eb62c..6433511a43ab 100644
--- a/svtools/source/uno/unocontroltablemodel.hxx
+++ b/svtools/source/uno/unocontroltablemodel.hxx
@@ -152,10 +152,6 @@ namespace svt { namespace table
*/
void notifyAllDataChanged() const;
-#ifdef DBG_UTIL
- const char* checkInvariants() const;
-#endif
-
private:
void impl_notifyTableMetricsChanged() const;
};
diff --git a/sw/UIConfig_swriter.mk b/sw/UIConfig_swriter.mk
index dbfb7d4b578e..e2d35c2b076a 100644
--- a/sw/UIConfig_swriter.mk
+++ b/sw/UIConfig_swriter.mk
@@ -171,7 +171,6 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/queryshowchangesdialog \
sw/uiconfig/swriter/ui/mailmerge \
sw/uiconfig/swriter/ui/mmaddressblockpage \
- sw/uiconfig/swriter/ui/mmcreatingdialog \
sw/uiconfig/swriter/ui/mmlayoutpage \
sw/uiconfig/swriter/ui/mmmailbody \
sw/uiconfig/swriter/ui/mmmergepage \
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index e9a5a343be9b..9aaea8ca7ad6 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -186,10 +186,6 @@ public:
/// Count words in current selection.
void CountWords( SwDocStat& rStat ) const;
- /** Delete non-visible content in the document.
- E.g. hidden ranges, hidden paragraphs. */
- bool RemoveInvisibleContent();
-
/// Replace fields by text - mailmerge support.
bool ConvertFieldsToText();
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx
index 4ec7dd0882b6..620a98f42b5c 100644
--- a/sw/source/core/edit/editsh.cxx
+++ b/sw/source/core/edit/editsh.cxx
@@ -748,14 +748,6 @@ SvNumberFormatter* SwEditShell::GetNumberFormatter()
return GetDoc()->GetNumberFormatter();
}
-bool SwEditShell::RemoveInvisibleContent()
-{
- StartAllAction();
- bool bRet = GetDoc()->RemoveInvisibleContent();
- EndAllAction();
- return bRet;
-}
-
bool SwEditShell::ConvertFieldsToText()
{
StartAllAction();
diff --git a/sw/source/filter/ww8/docxsdrexport.cxx b/sw/source/filter/ww8/docxsdrexport.cxx
index bf677269283e..94fdcc2b0135 100644
--- a/sw/source/filter/ww8/docxsdrexport.cxx
+++ b/sw/source/filter/ww8/docxsdrexport.cxx
@@ -270,11 +270,6 @@ bool DocxSdrExport::IsDrawingOpen()
return m_pImpl->m_bDrawingOpen;
}
-bool DocxSdrExport::isParagraphSdtOpen()
-{
- return m_pImpl->m_bParagraphSdtOpen;
-}
-
void DocxSdrExport::setParagraphSdtOpen(bool bParagraphSdtOpen)
{
m_pImpl->m_bParagraphSdtOpen = bParagraphSdtOpen;
diff --git a/sw/source/filter/ww8/docxsdrexport.hxx b/sw/source/filter/ww8/docxsdrexport.hxx
index 8ee6cd7756cd..31ca9654265b 100644
--- a/sw/source/filter/ww8/docxsdrexport.hxx
+++ b/sw/source/filter/ww8/docxsdrexport.hxx
@@ -64,8 +64,6 @@ public:
/// Same, as DocxAttributeOutput::m_bBtLr, but for textframe rotation.
bool getFrameBtLr();
- /// Is paragraph sdt open in the current drawing?
- bool isParagraphSdtOpen();
/// Set if paragraph sdt open in the current drawing.
void setParagraphSdtOpen(bool bParagraphSdtOpen);
diff --git a/sw/source/uibase/dbui/dbui.cxx b/sw/source/uibase/dbui/dbui.cxx
index f9a3e16007cd..c242d39f60cd 100644
--- a/sw/source/uibase/dbui/dbui.cxx
+++ b/sw/source/uibase/dbui/dbui.cxx
@@ -42,41 +42,6 @@ PrintMonitor::PrintMonitor(Window *pParent, PrintMonitorType eType )
m_pPrinting->Show();
}
-// Progress Indicator for Creation of personalized Mail Merge documents:
-CreateMonitor::CreateMonitor( Window *pParent )
- : CancelableModelessDialog(pParent, "MMCreatingDialog",
- "modules/swriter/ui/mmcreatingdialog.ui")
- , m_sCountingPattern()
- , m_sVariable_Total("%Y")
- , m_sVariable_Position("%X")
- , m_nTotalCount(0)
- , m_nCurrentPosition(0)
-{
- get(m_pCounting, "progress");
- m_sCountingPattern = m_pCounting->GetText();
- m_pCounting->SetText("...");
-}
-
-void CreateMonitor::UpdateCountingText()
-{
- OUString sText(m_sCountingPattern);
- sText = sText.replaceAll( m_sVariable_Total, OUString::number( m_nTotalCount ) );
- sText = sText.replaceAll( m_sVariable_Position, OUString::number( m_nCurrentPosition ) );
- m_pCounting->SetText(sText);
-}
-
-void CreateMonitor::SetTotalCount( sal_Int32 nTotal )
-{
- m_nTotalCount = nTotal;
- UpdateCountingText();
-}
-
-void CreateMonitor::SetCurrentPosition( sal_Int32 nCurrent )
-{
- m_nCurrentPosition = nCurrent;
- UpdateCountingText();
-}
-
CancelableModelessDialog::CancelableModelessDialog( Window *pParent,
const OString& rID, const OUString& rUIXMLDescription )
: ModelessDialog( pParent , rID, rUIXMLDescription )
diff --git a/sw/source/uibase/dbui/mmconfigitem.cxx b/sw/source/uibase/dbui/mmconfigitem.cxx
index 58f17ecbf727..361d1af0b7ad 100644
--- a/sw/source/uibase/dbui/mmconfigitem.cxx
+++ b/sw/source/uibase/dbui/mmconfigitem.cxx
@@ -1075,24 +1075,6 @@ void SwMailMergeConfigItem::ExcludeRecord(sal_Int32 nRecord, bool bExclude)
}
}
-Sequence< Any > SwMailMergeConfigItem::GetSelection() const
-{
- Sequence< Any > aRet(m_aSelection.getLength());
- sal_Int32 nRetIndex = 0;
- sal_Int32 nRet;
- for(sal_Int32 nIndex = 0; nIndex < m_aSelection.getLength(); ++nIndex)
- {
- m_aSelection[nIndex] >>= nRet;
- if(nRet > 0)
- {
- aRet[nRetIndex] <<= nRet;
- ++nRetIndex;
- }
- }
- aRet.realloc(nRetIndex);
- return aRet;
-}
-
const uno::Sequence< OUString>&
SwMailMergeConfigItem::GetSavedDocuments() const
{
diff --git a/sw/source/uibase/inc/dbui.hxx b/sw/source/uibase/inc/dbui.hxx
index 4e613ec0c155..3877ac21153b 100644
--- a/sw/source/uibase/inc/dbui.hxx
+++ b/sw/source/uibase/inc/dbui.hxx
@@ -53,27 +53,6 @@ public:
PrintMonitor( Window *pParent, PrintMonitorType eType );
};
-class CreateMonitor : public CancelableModelessDialog
-{
-public:
- CreateMonitor( Window *pParent );
-
- void SetTotalCount( sal_Int32 nTotal );
- void SetCurrentPosition( sal_Int32 nCurrent );
-
-private:
- void UpdateCountingText();
-
-private:
- FixedText* m_pCounting;
-
- OUString m_sCountingPattern;
- OUString m_sVariable_Total;
- OUString m_sVariable_Position;
- sal_Int32 m_nTotalCount;
- sal_Int32 m_nCurrentPosition;
-};
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/inc/mmconfigitem.hxx b/sw/source/uibase/inc/mmconfigitem.hxx
index f9300646b49f..feeaed83610f 100644
--- a/sw/source/uibase/inc/mmconfigitem.hxx
+++ b/sw/source/uibase/inc/mmconfigitem.hxx
@@ -102,8 +102,6 @@ public:
OUString& GetFilter() const;
void SetFilter(OUString&);
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any>
- GetSelection()const;
void SetSelection(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rSelection);
void SetCurrentDBData( const SwDBData& rDBData);
diff --git a/sw/uiconfig/swriter/ui/mmcreatingdialog.ui b/sw/uiconfig/swriter/ui/mmcreatingdialog.ui
deleted file mode 100644
index 6572c8ce965c..000000000000
--- a/sw/uiconfig/swriter/ui/mmcreatingdialog.ui
+++ /dev/null
@@ -1,116 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
- <!-- interface-requires gtk+ 3.0 -->
- <object class="GtkDialog" id="MMCreatingDialog">
- <property name="can_focus">False</property>
- <property name="border_width">6</property>
- <property name="title" translatable="yes">Mail Merge</property>
- <property name="type_hint">dialog</property>
- <child internal-child="vbox">
- <object class="GtkBox" id="dialog-vbox1">
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <property name="spacing">12</property>
- <child internal-child="action_area">
- <object class="GtkButtonBox" id="dialog-action_area1">
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <object class="GtkButton" id="cancel">
- <property name="label">gtk-cancel</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkGrid" id="grid1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">center</property>
- <property name="row_spacing">6</property>
- <property name="column_spacing">12</property>
- <child>
- <object class="GtkLabel" id="label1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">1</property>
- <property name="label" translatable="yes">Status:</property>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">1</property>
- <property name="label" translatable="yes">Progress:</property>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Creating documents...</property>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="progress">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">%X of %Y</property>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- </child>
- <action-widgets>
- <action-widget response="0">cancel</action-widget>
- </action-widgets>
- </object>
-</interface>
diff --git a/unusedcode.easy b/unusedcode.easy
index b24e0b3f6ad3..ee2ddaf369e9 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1,6 +1,5 @@
BigInt::BigInt(unsigned int)
CalcUnoApiTest::CalcUnoApiTest(rtl::OUString const&)
-DocxSdrExport::isParagraphSdtOpen()
GDriveDocument::GDriveDocument(GDriveSession*)
GDriveFolder::GDriveFolder(GDriveSession*)
GDriveProperty::GDriveProperty()
@@ -212,8 +211,4 @@ std::__cxx1998::vector<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThr
std::auto_ptr<formula::FormulaTokenArray>::auto_ptr(std::auto_ptr<formula::FormulaTokenArray>&)
std::auto_ptr<formula::FormulaTokenArray>::auto_ptr(std::auto_ptr_ref<formula::FormulaTokenArray>)
svgio::svgreader::SvgDocument::removeSvgStyleAttributesFromMapper(rtl::OUString const&)
-svl::GridPrinter::clear()
-svl::GridPrinter::resize(unsigned long, unsigned long)
-svt::CheckInvariants(void const*)
-svt::table::UnoControlTableModel::checkInvariants() const
vcl::MapChar(vcl::_TrueTypeFont*, unsigned short, bool)
diff --git a/writerfilter/source/dmapper/WrapPolygonHandler.cxx b/writerfilter/source/dmapper/WrapPolygonHandler.cxx
index d01190e31e05..ea8a10c73b77 100644
--- a/writerfilter/source/dmapper/WrapPolygonHandler.cxx
+++ b/writerfilter/source/dmapper/WrapPolygonHandler.cxx
@@ -66,11 +66,6 @@ WrapPolygon::Points_t::iterator WrapPolygon::end()
return mPoints.end();
}
-size_t WrapPolygon::size() const
-{
- return mPoints.size();
-}
-
WrapPolygon::Pointer_t WrapPolygon::move(const awt::Point & rPoint)
{
WrapPolygon::Pointer_t pResult(new WrapPolygon);
diff --git a/writerfilter/source/dmapper/WrapPolygonHandler.hxx b/writerfilter/source/dmapper/WrapPolygonHandler.hxx
index a855c0224ced..af6fdde535fe 100644
--- a/writerfilter/source/dmapper/WrapPolygonHandler.hxx
+++ b/writerfilter/source/dmapper/WrapPolygonHandler.hxx
@@ -49,8 +49,6 @@ public:
Points_t::iterator begin();
Points_t::iterator end();
- size_t size() const;
-
WrapPolygon::Pointer_t move(const css::awt::Point & rMove);
WrapPolygon::Pointer_t scale(const Fraction & rFractionX, const Fraction & rFractionY);
WrapPolygon::Pointer_t correctWordWrapPolygon(const css::awt::Size & rSrcSize);