summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-29 09:07:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-29 23:42:26 +0000
commit309574394bd4ae3e9e10e5ff0d64bdd7bbbc8b83 (patch)
treef8b8cea0a81bc74ca34e8bda2d0dfce939b28ce0 /starmath
parent20deac4903fc0697477e855feeff482b3da234f9 (diff)
callcatcher: large newly detected unused methods post de-virtualization
i.e lots now able to be detected after... commit b44cbb26efe1d0b0950b1e1613e131b506dc3876 Author: Noel Grandin <noel@peralex.com> Date: Tue Jan 20 12:38:10 2015 +0200 new loplugin: change virtual methods to non-virtual Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I605e2fa56f7186c3d3a764f3cd30f5cf7f881f9d
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/document.hxx1
-rw-r--r--starmath/inc/view.hxx1
-rw-r--r--starmath/source/document.cxx8
-rw-r--r--starmath/source/view.cxx8
4 files changed, 0 insertions, 18 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 896c7f2f287b..6c543ca6d370 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -124,7 +124,6 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener
sal_Int32 nFileFormat,
bool bTemplate = false ) const SAL_OVERRIDE;
- bool SetData( const OUString& rData );
virtual sal_uLong GetMiscStatus() const SAL_OVERRIDE;
virtual void OnDocumentPrinterChanged( Printer * ) SAL_OVERRIDE;
virtual bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ) SAL_OVERRIDE;
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index 0d9430e91e95..9a59199eda55 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -260,7 +260,6 @@ protected:
const OUString& rText,
sal_uInt16 MaxWidth);
- sal_uInt16 Print(SfxProgress &rProgress, bool bIsAPI);
virtual SfxPrinter *GetPrinter(bool bCreate = false) SAL_OVERRIDE;
virtual sal_uInt16 SetPrinter(SfxPrinter *pNewPrinter,
sal_uInt16 nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false) SAL_OVERRIDE;
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 5f1948c0e17a..c5acddbfe1bc 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -696,14 +696,6 @@ SmDocShell::~SmDocShell()
delete pPrinter;
}
-
-bool SmDocShell::SetData( const OUString& rData )
-{
- SetText( rData );
- return true;
-}
-
-
bool SmDocShell::ConvertFrom(SfxMedium &rMedium)
{
bool bSuccess = false;
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 66025860d2a8..9f7a4f034e7b 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1319,13 +1319,6 @@ void SmViewShell::Impl_Print(
rOutDev.Pop();
}
-sal_uInt16 SmViewShell::Print(SfxProgress & /*rProgress*/, bool /*bIsAPI*/)
-{
- SAL_WARN( "starmath", "SmViewShell::Print: no longer used with new UI print dialog. Should be removed!!" );
- return 0;
-}
-
-
SfxPrinter* SmViewShell::GetPrinter(bool bCreate)
{
SmDocShell *pDoc = GetDoc();
@@ -1334,7 +1327,6 @@ SfxPrinter* SmViewShell::GetPrinter(bool bCreate)
return 0;
}
-
sal_uInt16 SmViewShell::SetPrinter(SfxPrinter *pNewPrinter, sal_uInt16 nDiffFlags, bool )
{
SfxPrinter *pOld = GetDoc()->GetPrinter();