[Libreoffice-commits] core.git: bridges/source include/ucbhelper io/source pyuno/inc
Noel Grandin
noel at peralex.com
Thu Jul 2 05:15:03 PDT 2015
bridges/source/jni_uno/jni_base.h | 8 --------
include/ucbhelper/interactionrequest.hxx | 17 -----------------
include/ucbhelper/propertyvalueset.hxx | 25 -------------------------
include/ucbhelper/resultsethelper.hxx | 12 ------------
io/source/stm/streamhelper.cxx | 11 -----------
io/source/stm/streamhelper.hxx | 3 ---
pyuno/inc/pyuno/pyuno.hxx | 8 --------
7 files changed, 84 deletions(-)
New commits:
commit 1a7e0cfd86c03607f9009aec40dbfa5d43de0c8e
Author: Noel Grandin <noel at peralex.com>
Date: Thu Jul 2 09:40:48 2015 +0200
loplugin:unusedmethods bridges,ucbhelper,io,pyuno
Change-Id: I483deb33b9d861af679d4a36e13585345401e10d
Reviewed-on: https://gerrit.libreoffice.org/16681
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/bridges/source/jni_uno/jni_base.h b/bridges/source/jni_uno/jni_base.h
index af93d6a..4fd90ea 100644
--- a/bridges/source/jni_uno/jni_base.h
+++ b/bridges/source/jni_uno/jni_base.h
@@ -158,7 +158,6 @@ public:
inline bool is() const
{ return (0 != m_jo); }
inline jobject release();
- inline void reset();
inline void reset( jobject jo );
inline JLocalAutoRef & operator = ( JLocalAutoRef & auto_ref );
};
@@ -183,13 +182,6 @@ inline jobject JLocalAutoRef::release()
return jo;
}
-inline void JLocalAutoRef::reset()
-{
- if (0 != m_jo)
- m_jni->DeleteLocalRef( m_jo );
- m_jo = 0;
-}
-
inline void JLocalAutoRef::reset( jobject jo )
{
if (jo != m_jo)
diff --git a/include/ucbhelper/interactionrequest.hxx b/include/ucbhelper/interactionrequest.hxx
index d0996d7..2cba1ca 100644
--- a/include/ucbhelper/interactionrequest.hxx
+++ b/include/ucbhelper/interactionrequest.hxx
@@ -529,14 +529,6 @@ public:
const OUString & getPassword() const { return m_aPassword; }
/**
- * This method returns the account that was supplied by the interaction
- * handler.
- *
- * @return the account.
- */
- const OUString & getAccount() const { return m_aAccount; }
-
- /**
* This method returns the authentication remember-mode for the password
* that was supplied by the interaction handler.
*
@@ -545,15 +537,6 @@ public:
const com::sun::star::ucb::RememberAuthentication &
getRememberPasswordMode() const { return m_eRememberPasswordMode; }
- /**
- * This method returns the authentication remember-mode for the account
- * that was supplied by the interaction handler.
- *
- * @return the remember-mode for the account.
- */
- const com::sun::star::ucb::RememberAuthentication &
- getRememberAccountMode() const { return m_eRememberAccountMode; }
-
bool getUseSystemCredentials() const { return m_bUseSystemCredentials; }
};
diff --git a/include/ucbhelper/propertyvalueset.hxx b/include/ucbhelper/propertyvalueset.hxx
index c557373..09f5564 100644
--- a/include/ucbhelper/propertyvalueset.hxx
+++ b/include/ucbhelper/propertyvalueset.hxx
@@ -193,62 +193,37 @@ public:
// Non-interface methods
-
void appendString( const OUString& rPropName, const OUString& rValue );
- void appendString( const sal_Char* pAsciiPropName, const OUString& rValue )
- {
- appendString( OUString::createFromAscii( pAsciiPropName ), rValue );
- }
void appendString( const ::com::sun::star::beans::Property& rProp, const OUString& rValue )
{
appendString( rProp.Name, rValue );
}
void appendBoolean( const OUString& rPropName, bool bValue );
- void appendBoolean( const sal_Char* pAsciiPropName, bool bValue )
- {
- appendBoolean( OUString::createFromAscii( pAsciiPropName ), bValue );
- }
void appendBoolean( const ::com::sun::star::beans::Property& rProp, bool bValue )
{
appendBoolean( rProp.Name, bValue );
}
void appendLong( const OUString& rPropName, sal_Int64 nValue );
- void appendLong( const sal_Char* pAsciiPropName, sal_Int64 nValue )
- {
- appendLong( OUString::createFromAscii( pAsciiPropName ), nValue );
- }
void appendLong( const ::com::sun::star::beans::Property& rProp, sal_Int64 nValue )
{
appendLong( rProp.Name, nValue );
}
void appendTimestamp( const OUString& rPropName, const ::com::sun::star::util::DateTime& rValue );
- void appendTimestamp( const sal_Char* pAsciiPropName, const ::com::sun::star::util::DateTime& rValue )
- {
- appendTimestamp( OUString::createFromAscii( pAsciiPropName ), rValue );
- }
void appendTimestamp( const ::com::sun::star::beans::Property& rProp, const ::com::sun::star::util::DateTime& rValue )
{
appendTimestamp( rProp.Name, rValue );
}
void appendObject( const OUString& rPropName, const ::com::sun::star::uno::Any& rValue );
- void appendObject( const sal_Char* pAsciiPropName, const ::com::sun::star::uno::Any& rValue )
- {
- appendObject( OUString::createFromAscii( pAsciiPropName ), rValue );
- }
void appendObject( const ::com::sun::star::beans::Property& rProp, const ::com::sun::star::uno::Any& rValue )
{
appendObject( rProp.Name, rValue );
}
void appendVoid( const OUString& rPropName );
- void appendVoid( const sal_Char* pAsciiPropName)
- {
- appendVoid( OUString::createFromAscii( pAsciiPropName ) );
- }
void appendVoid( const ::com::sun::star::beans::Property& rProp )
{
appendVoid( rProp.Name );
diff --git a/include/ucbhelper/resultsethelper.hxx b/include/ucbhelper/resultsethelper.hxx
index bd6575e..5c7f9e2 100644
--- a/include/ucbhelper/resultsethelper.hxx
+++ b/include/ucbhelper/resultsethelper.hxx
@@ -201,18 +201,6 @@ public:
getCapabilities()
throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
-
- // Non-interface methods.
-
-
- /**
- * This method returns, whether the resultset is static or dynamic.
- * If neither getStatic() nor getDynamic() was called, the type
- * of the resultset is "dynamic".
- *
- * @return true, if the resultset type is "static". False, otherwise.
- */
- bool isStatic() const { return m_bStatic; }
};
}
diff --git a/io/source/stm/streamhelper.cxx b/io/source/stm/streamhelper.cxx
index 988fb24..516d4e5 100644
--- a/io/source/stm/streamhelper.cxx
+++ b/io/source/stm/streamhelper.cxx
@@ -202,17 +202,6 @@ void MemRingBuffer::forgetFromStart( sal_Int32 nBytesToForget ) throw (IRingBuff
}
-void MemRingBuffer::forgetFromEnd( sal_Int32 nBytesToForget ) throw (IRingBuffer_OutOfBoundsException)
-{
- checkInvariants();
- if( nBytesToForget > m_nOccupiedBuffer ) {
- throw IRingBuffer_OutOfBoundsException();
- }
- m_nOccupiedBuffer -= nBytesToForget;
- checkInvariants();
-}
-
-
void MemRingBuffer::shrink() throw ()
{
checkInvariants();
diff --git a/io/source/stm/streamhelper.hxx b/io/source/stm/streamhelper.hxx
index 56b7412..0275557 100644
--- a/io/source/stm/streamhelper.hxx
+++ b/io/source/stm/streamhelper.hxx
@@ -57,7 +57,6 @@ public:
virtual void skip( sal_Int32 nBytesToSkip )
throw( I_FIFO_OutOfBoundsException )=0;
virtual sal_Int32 getSize() const throw( ) =0;
- virtual void shrink() throw() = 0;
virtual ~I_FIFO() {};
};
@@ -87,7 +86,6 @@ public:
throw( IRingBuffer_OutOfBoundsException )=0;
virtual sal_Int32 getSize() const throw( ) =0;
virtual void forgetFromStart( sal_Int32 nBytesToForget ) throw(IRingBuffer_OutOfBoundsException)=0;
- virtual void forgetFromEnd( sal_Int32 nBytesToForget ) throw(IRingBuffer_OutOfBoundsException)=0;
virtual void shrink() throw() = 0;
virtual ~IRingBuffer() {};
};
@@ -107,7 +105,6 @@ public:
throw( IRingBuffer_OutOfBoundsException ) SAL_OVERRIDE;
virtual sal_Int32 getSize() const throw( ) SAL_OVERRIDE;
virtual void forgetFromStart( sal_Int32 nBytesToForget ) throw(IRingBuffer_OutOfBoundsException) SAL_OVERRIDE;
- virtual void forgetFromEnd( sal_Int32 nBytesToForget ) throw(IRingBuffer_OutOfBoundsException) SAL_OVERRIDE;
virtual void shrink() throw() SAL_OVERRIDE;
diff --git a/pyuno/inc/pyuno/pyuno.hxx b/pyuno/inc/pyuno/pyuno.hxx
index 66ad8e6..ae8f16e 100644
--- a/pyuno/inc/pyuno/pyuno.hxx
+++ b/pyuno/inc/pyuno/pyuno.hxx
@@ -133,14 +133,6 @@ public:
m = 0;
}
- /** clears the reference decreasing the refcount of the holded object.
- */
- void clear()
- {
- Py_XDECREF( m );
- m = 0;
- }
-
/** returns 1 when the reference points to a python object python object,
otherwise 0.
*/
More information about the Libreoffice-commits
mailing list