summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-26 09:16:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-26 11:51:16 +0000
commitc5bcfe902d1c4be488a1ce0ffb44a4f54734b2d5 (patch)
tree005e92bd01b8677581d8c38dbbaedf9e6ad8415a
parent598d02d71f40901eab9275704c8bc0e1641b56e3 (diff)
callcatcher: update unused code
Change-Id: I2d79938465800a6bfe8cc120b85dc449ff04a960
-rw-r--r--basegfx/source/numeric/ftools.cxx27
-rw-r--r--include/basegfx/numeric/ftools.hxx4
-rw-r--r--sc/source/core/opencl/opencl_device.cxx10
-rw-r--r--svx/source/accessibility/svxpixelctlaccessiblecontext.cxx16
-rw-r--r--svx/source/inc/svxpixelctlaccessiblecontext.hxx11
-rw-r--r--unusedcode.easy4
6 files changed, 0 insertions, 72 deletions
diff --git a/basegfx/source/numeric/ftools.cxx b/basegfx/source/numeric/ftools.cxx
index 6816fb3145d1..83bacc923da5 100644
--- a/basegfx/source/numeric/ftools.cxx
+++ b/basegfx/source/numeric/ftools.cxx
@@ -25,33 +25,6 @@ namespace basegfx
// init static member of class fTools
double ::basegfx::fTools::mfSmallValue = 0.000000001;
- double snapToZeroRange(double v, double fWidth)
- {
- if(fTools::equalZero(fWidth))
- {
- // with no range all snaps to range bound
- return 0.0;
- }
- else
- {
- if(v < 0.0 || v > fWidth)
- {
- double fRetval(fmod(v, fWidth));
-
- if(fRetval < 0.0)
- {
- fRetval += fWidth;
- }
-
- return fRetval;
- }
- else
- {
- return v;
- }
- }
- }
-
} // end of namespace basegfx
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/basegfx/numeric/ftools.hxx b/include/basegfx/numeric/ftools.hxx
index 5ce21f7bf95f..dc388798667e 100644
--- a/include/basegfx/numeric/ftools.hxx
+++ b/include/basegfx/numeric/ftools.hxx
@@ -136,10 +136,6 @@ namespace basegfx
return v / M_PI_2 * 90.0;
}
- /** Snap v to the range [0.0 .. fWidth] using modulo
- */
- double snapToZeroRange(double v, double fWidth);
-
/** return fValue with the sign of fSignCarrier, thus evtl. changed
*/
inline double copySign(double fValue, double fSignCarrier)
diff --git a/sc/source/core/opencl/opencl_device.cxx b/sc/source/core/opencl/opencl_device.cxx
index 79e2396ef12f..1a5edc545bec 100644
--- a/sc/source/core/opencl/opencl_device.cxx
+++ b/sc/source/core/opencl/opencl_device.cxx
@@ -565,16 +565,6 @@ ds_device getDeviceSelection(const char* sProfilePath, bool bForceSelection)
return selectedDevice;
}
-bool selectedDeviceIsOpenCL(ds_device device)
-{
- return (DS_DEVICE_OPENCL_DEVICE == device.type);
-}
-
-bool selectedDeviceIsNativeCPU(ds_device device)
-{
- return (DS_DEVICE_NATIVE_CPU == device.type);
-}
-
}}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
index 45a3df4250f4..2893521fbea2 100644
--- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
+++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
@@ -379,22 +379,6 @@ void SvxPixelCtlAccessible::ensureIsAlive() const
throw lang::DisposedException();
}
-void SvxPixelCtlAccessible::ensureIsValidRow( sal_Int32 nRow )
- throw ( lang::IndexOutOfBoundsException )
-{
- if( nRow >= mrPixelCtl.GetHeight() || nRow <0)
- throw lang::IndexOutOfBoundsException(
- OUString( RTL_CONSTASCII_USTRINGPARAM( "row index is invalid" ) ), *this );
-}
-
-void SvxPixelCtlAccessible::ensureIsValidColumn( sal_Int32 nColumn )
- throw ( lang::IndexOutOfBoundsException )
-{
- if( nColumn >= mrPixelCtl.GetWidth() || nColumn <0 )
- throw lang::IndexOutOfBoundsException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("column index is invalid") ), *this );
-}
-
//XAccessibleEventBroadcaster
void SAL_CALL SvxPixelCtlAccessible::addAccessibleEventListener( const uno::Reference< XAccessibleEventListener >& xListener ) throw( RuntimeException )
{
diff --git a/svx/source/inc/svxpixelctlaccessiblecontext.hxx b/svx/source/inc/svxpixelctlaccessiblecontext.hxx
index 2c887b73fb54..0b8a8359ced6 100644
--- a/svx/source/inc/svxpixelctlaccessiblecontext.hxx
+++ b/svx/source/inc/svxpixelctlaccessiblecontext.hxx
@@ -249,17 +249,6 @@ public:
inline sal_Bool IsNotAlive( void ) const;
protected:
- /** @attention This method requires locked mutex's and a living object.
- @throws <type>IndexOutOfBoundsException</type>
- If the specified row index is invalid. */
- void ensureIsValidRow( sal_Int32 nRow )
- throw ( ::com::sun::star::lang::IndexOutOfBoundsException );
- /** @attention This method requires locked mutex's and a living object.
- @throws <type>IndexOutOfBoundsException</type>
- If the specified column index is invalid. */
- void ensureIsValidColumn( sal_Int32 nColumn )
- throw ( ::com::sun::star::lang::IndexOutOfBoundsException );
-
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> m_xCurChild;
public:
void NotifyChild(long nIndex,sal_Bool bSelect ,sal_Bool bCheck);
diff --git a/unusedcode.easy b/unusedcode.easy
index d9f50388455c..15d965983033 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -22,7 +22,6 @@ GDriveDocument::GDriveDocument(GDriveSession*)
GDriveFolder::GDriveFolder(GDriveSession*)
GDriveProperty::GDriveProperty()
GDriveSession::GDriveSession()
-ImplImageTree::checkStyle(rtl::OUString const&)
ImplRegionBand::IsInside(long, long)
ImplRegionBand::IsOver(long, long)
ImportExcel::GetLastFormula(short)
@@ -306,8 +305,6 @@ sc::CLBuildKernelThread::produce()
sc::CellTextAttr::CellTextAttr(unsigned short, unsigned char)
sc::ColumnSet::has(short, short) const
sc::CompareFunc(double, sc::Compare::Cell const&, sc::CompareOptions*)
-sc::OpenCLDevice::selectedDeviceIsNativeCPU(ds_device)
-sc::OpenCLDevice::selectedDeviceIsOpenCL(ds_device)
sc::opencl::OpenclDevice::getOpenclState()
sc::opencl::OpenclDevice::releaseOpenclRunEnv()
sc::opencl::OpenclDevice::setOpenclState(int)
@@ -315,7 +312,6 @@ sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
sd::LeftImpressPaneShell::RegisterInterface(SfxModule*)
sd::framework::Pane::SetWindow(Window*)
sd::presenter::PresenterCanvas::copyRect(com::sun::star::uno::Reference<com::sun::star::rendering::XBitmapCanvas> const&, com::sun::star::geometry::RealRectangle2D const&, com::sun::star::rendering::ViewState const&, com::sun::star::rendering::RenderState const&, com::sun::star::geometry::RealRectangle2D const&, com::sun::star::rendering::ViewState const&, com::sun::star::rendering::RenderState const&)
-sdr::overlay::OverlayRectangle::setSecondPosition(basegfx::B2DPoint const&)
sdr::table::Cell::getName()
sdr::table::SdrTableObj::getRowCount() const
sfx2::sidebar::ContextList::IsEmpty()