summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-17 09:24:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-17 11:44:56 +0000
commit0f46d90621eb5af6548ec6e9933b3a041728bd4e (patch)
tree00dc05ddcb932d7b4ee18172a77bf8dc4fd8fbb6
parent1e33cd8355eb1d856a1439b4a095e379b3acf0bd (diff)
callcatcher: update unused code
Change-Id: I08e99a019fd2ec16e2c995035e4bcc09678ef92b
-rw-r--r--dbaccess/source/core/api/RowSet.cxx5
-rw-r--r--dbaccess/source/core/api/RowSet.hxx6
-rw-r--r--include/svtools/ctrlbox.hxx5
-rw-r--r--reportdesign/source/core/api/Groups.cxx12
-rw-r--r--reportdesign/source/core/inc/Groups.hxx2
-rw-r--r--svtools/source/control/ctrlbox.cxx39
-rw-r--r--unusedcode.easy7
7 files changed, 4 insertions, 72 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx
index a1918d5bd737..90c4f53a5466 100644
--- a/dbaccess/source/core/api/RowSet.cxx
+++ b/dbaccess/source/core/api/RowSet.cxx
@@ -513,11 +513,6 @@ Sequence< OUString > SAL_CALL ORowSet::getSupportedServiceNames( ) throw(Runtim
return getSupportedServiceNames_static();
}
-Reference< XInterface > ORowSet::Create(const Reference< XComponentContext >& _rxContext)
-{
- return *(new ORowSet( _rxContext ));
-}
-
// OComponentHelper
void SAL_CALL ORowSet::disposing()
{
diff --git a/dbaccess/source/core/api/RowSet.hxx b/dbaccess/source/core/api/RowSet.hxx
index 35baaf9a834b..581d42b8674f 100644
--- a/dbaccess/source/core/api/RowSet.hxx
+++ b/dbaccess/source/core/api/RowSet.hxx
@@ -268,10 +268,8 @@ namespace dbaccess
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// ::com::sun::star::lang::XServiceInfo - static methods
- static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException );
- static OUString getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException );
- static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
- SAL_CALL Create(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&);
+ static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException );
+ static OUString getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException );
// OComponentHelper
virtual void SAL_CALL disposing(void) SAL_OVERRIDE;
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index 886650bb59f8..6f78ee337069 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -310,7 +310,6 @@ public:
void SetNone( const OUString& sNone );
using ListBox::InsertEntry;
- sal_Int32 InsertEntry( const OUString& rStr, sal_Int32 nPos = LISTBOX_APPEND );
/** Insert a listbox entry with all widths in Twips. */
void InsertEntry( BorderWidthImpl aWidthImpl,
sal_uInt16 nStyle, long nMinWidth = 0,
@@ -318,10 +317,6 @@ public:
ColorFunc pColor2Fn = &sameColor,
ColorDistFunc pColorDistFn = &sameDistColor );
- using ListBox::RemoveEntry;
- void RemoveEntry( sal_Int32 nPos );
- void Clear();
-
using ListBox::GetEntryPos;
sal_Int32 GetEntryPos( sal_uInt16 nStyle = com::sun::star::table::BorderLineStyle::SOLID ) const;
sal_uInt16 GetEntryStyle( sal_Int32 nPos ) const;
diff --git a/reportdesign/source/core/api/Groups.cxx b/reportdesign/source/core/api/Groups.cxx
index e7cd7b7d94e9..a50e5e6df7ca 100644
--- a/reportdesign/source/core/api/Groups.cxx
+++ b/reportdesign/source/core/api/Groups.cxx
@@ -43,18 +43,6 @@ OGroups::~OGroups()
{
}
-void OGroups::copyGroups(const uno::Reference< report::XGroups >& _xSource)
-{
- sal_Int32 nCount = _xSource->getCount();
- for (sal_Int32 i = 0; i != nCount; ++i)
- {
- OGroup* pGroup = new OGroup(this,m_xContext);
- m_aGroups.push_back(pGroup);
- uno::Reference<report::XGroup> xGroup(_xSource->getByIndex(i),uno::UNO_QUERY);
- pGroup->copyGroup(xGroup);
- }
-}
-
void SAL_CALL OGroups::dispose() throw(uno::RuntimeException, std::exception)
{
cppu::WeakComponentImplHelperBase::dispose();
diff --git a/reportdesign/source/core/inc/Groups.hxx b/reportdesign/source/core/inc/Groups.hxx
index 126f40721882..c2cf03a45d1e 100644
--- a/reportdesign/source/core/inc/Groups.hxx
+++ b/reportdesign/source/core/inc/Groups.hxx
@@ -59,8 +59,6 @@ namespace reportdesign
OGroups( const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition >& _xParent
,const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& context);
- void copyGroups(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XGroups >& _xSource);
-
// XGroups
// Attributes
virtual ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition > SAL_CALL getReportDefinition() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 903d18ae1260..8337101b507e 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -779,21 +779,6 @@ void LineListBox::SelectEntry( sal_uInt16 nStyle, bool bSelect )
ListBox::SelectEntryPos( nPos, bSelect );
}
-sal_Int32 LineListBox::InsertEntry( const OUString& rStr, sal_Int32 nPos )
-{
- nPos = ListBox::InsertEntry( rStr, nPos );
- if ( nPos != LISTBOX_ERROR ) {
- if ( static_cast<size_t>(nPos) < pLineList->size() ) {
- ImpLineList::iterator it = pLineList->begin();
- ::std::advance( it, nPos );
- pLineList->insert( it, reinterpret_cast<ImpLineListData *>(NULL) );
- } else {
- pLineList->push_back( NULL );
- }
- }
- return nPos;
-}
-
void LineListBox::InsertEntry(
BorderWidthImpl aWidthImpl, sal_uInt16 nStyle, long nMinWidth,
ColorFunc pColor1Fn, ColorFunc pColor2Fn, ColorDistFunc pColorDistFn )
@@ -803,30 +788,6 @@ void LineListBox::InsertEntry(
pLineList->push_back( pData );
}
-void LineListBox::RemoveEntry( sal_Int32 nPos )
-{
- ListBox::RemoveEntry( nPos );
-
- if ( 0 <= nPos && static_cast<size_t>(nPos) < pLineList->size() ) {
- ImpLineList::iterator it = pLineList->begin();
- ::std::advance( it, nPos );
- if ( *it ) delete *it;
- pLineList->erase( it );
- }
-}
-
-void LineListBox::Clear()
-{
- for ( size_t i = 0, n = pLineList->size(); i < n; ++i ) {
- if ( (*pLineList)[ i ] ) {
- delete (*pLineList)[ i ];
- }
- }
- pLineList->clear();
-
- ListBox::Clear();
-}
-
sal_Int32 LineListBox::GetEntryPos( sal_uInt16 nStyle ) const
{
for ( size_t i = 0, n = pLineList->size(); i < n; ++i ) {
diff --git a/unusedcode.easy b/unusedcode.easy
index 7a6932e678f5..9eec7a1e1428 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1,8 +1,5 @@
BigInt::BigInt(unsigned int)
FontCharMap::GetDefaultMap(bool)
-LineListBox::Clear()
-LineListBox::InsertEntry(rtl::OUString const&, int)
-LineListBox::RemoveEntry(int)
OpenGLContext::init(_XDisplay*, unsigned long, unsigned int, unsigned int, int)
OpenGLContext::renderToFile()
OpenGLContext::requestSingleBufferedRendering()
@@ -178,9 +175,9 @@ basegfx::tools::containsOnlyHorizontalAndVerticalEdges(basegfx::B2DPolyPolygon c
canvas::createSurfaceProxyManager(boost::shared_ptr<canvas::IRenderModule> const&)
chart::ShapeToolbarController::create(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&)
comphelper::OAccessibleImplementationAccess::setStateBit(short, bool)
-comphelper::detail::ConfigurationWrapper::getGroupReadWrite(boost::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&) const
+comphelper::detail::ConfigurationWrapper::getGroupReadWrite(std::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&) const
comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue(rtl::OUString const&) const
-comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue(boost::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&, com::sun::star::uno::Any const&) const
+comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue(std::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&, com::sun::star::uno::Any const&) const
connectivity::dbase::ODbaseResultSet::createAnalyzer()
connectivity::firebird::release(int&, cppu::OBroadcastHelperVar<cppu::OMultiTypeInterfaceContainerHelper, com::sun::star::uno::Type>&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&, com::sun::star::lang::XComponent*)
connectivity::odbc::appendSQLWCHARs(rtl::OUStringBuffer&, wchar_t const*, int)