summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-13 12:07:16 +0200
committerNoel Grandin <noel@peralex.com>2016-01-13 12:16:23 +0200
commit5ec991b6fecba3f8bad120dd89bb4482d6498480 (patch)
treeec506d35d7ec9668ab7ebe49fcb735395a24454b /unotools
parent8a43ba529a9cd5ba7658334f9546f978175921ab (diff)
loplugin:unusedmethods unused return value unotools/
Change-Id: I5fbb0fe5910d4f430fe4885eae5689592c366500
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/lingucfg.cxx6
-rw-r--r--unotools/source/config/searchopt.cxx6
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx4
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.hxx2
4 files changed, 6 insertions, 12 deletions
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx
index aa50fe979b16..cab762af4d91 100644
--- a/unotools/source/config/lingucfg.cxx
+++ b/unotools/source/config/lingucfg.cxx
@@ -148,7 +148,7 @@ class SvtLinguConfigItem : public utl::ConfigItem
static bool GetHdlByName( sal_Int32 &rnHdl, const OUString &rPropertyName, bool bFullPropName = false );
static const uno::Sequence< OUString > GetPropertyNames();
- bool LoadOptions( const uno::Sequence< OUString > &rProperyNames );
+ void LoadOptions( const uno::Sequence< OUString > &rProperyNames );
bool SaveOptions( const uno::Sequence< OUString > &rProperyNames );
SvtLinguConfigItem(const SvtLinguConfigItem&) = delete;
@@ -548,7 +548,7 @@ const SvtLinguOptions& SvtLinguConfigItem::GetOptions() const
return aOpt;
}
-bool SvtLinguConfigItem::LoadOptions( const uno::Sequence< OUString > &rProperyNames )
+void SvtLinguConfigItem::LoadOptions( const uno::Sequence< OUString > &rProperyNames )
{
osl::MutexGuard aGuard(theSvtLinguConfigItemMutex::get());
@@ -661,8 +661,6 @@ bool SvtLinguConfigItem::LoadOptions( const uno::Sequence< OUString > &rProperyN
bRes = true;
}
DBG_ASSERT( bRes, "LoadOptions failed" );
-
- return bRes;
}
bool SvtLinguConfigItem::SaveOptions( const uno::Sequence< OUString > &rProperyNames )
diff --git a/unotools/source/config/searchopt.cxx b/unotools/source/config/searchopt.cxx
index 6c1a2b34f19e..cc491e09743e 100644
--- a/unotools/source/config/searchopt.cxx
+++ b/unotools/source/config/searchopt.cxx
@@ -50,7 +50,7 @@ protected:
bool IsModified() const { return bModified; }
using ConfigItem::SetModified;
void SetModified( bool bVal );
- bool Load();
+ void Load();
bool Save();
static Sequence< OUString > GetPropertyNames();
@@ -161,7 +161,7 @@ Sequence< OUString > SvtSearchOptions_Impl::GetPropertyNames()
return aNames;
}
-bool SvtSearchOptions_Impl::Load()
+void SvtSearchOptions_Impl::Load()
{
bool bSucc = false;
@@ -210,8 +210,6 @@ bool SvtSearchOptions_Impl::Load()
}
}
DBG_ASSERT( bSucc, "LoadConfig failed" );
-
- return bSucc;
}
bool SvtSearchOptions_Impl::Save()
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index e9f6259807aa..784c1ed3b7d9 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -1093,7 +1093,7 @@ Reference < XInputStream > UcbLockBytes::getInputStream()
return m_xInputStream;
}
-bool UcbLockBytes::setStream_Impl( const Reference<XStream>& aStream )
+void UcbLockBytes::setStream_Impl( const Reference<XStream>& aStream )
{
osl::MutexGuard aGuard( m_aMutex );
if ( aStream.is() )
@@ -1107,8 +1107,6 @@ bool UcbLockBytes::setStream_Impl( const Reference<XStream>& aStream )
m_xOutputStream.clear();
setInputStream_Impl( Reference < XInputStream >() );
}
-
- return m_xInputStream.is();
}
bool UcbLockBytes::setInputStream_Impl( const Reference<XInputStream> &rxInputStream, bool bSetXSeekable )
diff --git a/unotools/source/ucbhelper/ucblockbytes.hxx b/unotools/source/ucbhelper/ucblockbytes.hxx
index b97151f42648..1fd6f5afdd37 100644
--- a/unotools/source/ucbhelper/ucblockbytes.hxx
+++ b/unotools/source/ucbhelper/ucblockbytes.hxx
@@ -128,7 +128,7 @@ public:
bool setInputStream_Impl( const css::uno::Reference < css::io::XInputStream > &rxInputStream,
bool bSetXSeekable = true );
- bool setStream_Impl( const css::uno::Reference < css::io::XStream > &rxStream );
+ void setStream_Impl( const css::uno::Reference < css::io::XStream > &rxStream );
void terminate_Impl();
css::uno::Reference < css::io::XInputStream > getInputStream_Impl() const