loplugin:unusedmethods bridges,ucbhelper,io,pyuno
Change-Id: I483deb33b9d861af679d4a36e13585345401e10d Reviewed-on: https://gerrit.libreoffice.org/16681 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
committed by
Noel Grandin
parent
1d498fb0fe
commit
1a7e0cfd86
@@ -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)
|
||||
|
@@ -528,14 +528,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; }
|
||||
};
|
||||
|
||||
|
@@ -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 );
|
||||
|
@@ -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; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@@ -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();
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user