summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-03 09:21:43 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-06 10:55:59 +0000
commit871a41cfd043e1c7391ca0b8b3c5e60bd799025c (patch)
tree395c13351fc57350dbf7bb14371b3553b8d08868 /unotools
parente47db97d2ced9178456eebaece11118158dce406 (diff)
loplugin:unusedmethods unotools
Change-Id: Ieb73b50471263212285b9c3883c082477c1ad656 Reviewed-on: https://gerrit.libreoffice.org/16729 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/misc/fontcvt.cxx75
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx1
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.hxx17
3 files changed, 0 insertions, 93 deletions
diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx
index 29a783e58494..492fd34cd687 100644
--- a/unotools/source/misc/fontcvt.cxx
+++ b/unotools/source/misc/fontcvt.cxx
@@ -1034,7 +1034,6 @@ private:
public:
explicit StarSymbolToMSMultiFontImpl(bool bPerfectOnly);
OUString ConvertChar(sal_Unicode &rChar) SAL_OVERRIDE;
- OUString ConvertString(OUString &rString, sal_Int32& rIndex) SAL_OVERRIDE;
};
struct ExtraTable { sal_Unicode cStar; sal_uInt8 cMS;};
@@ -1239,80 +1238,6 @@ OUString StarSymbolToMSMultiFontImpl::ConvertChar(sal_Unicode &rChar)
return sRet;
}
-OUString StarSymbolToMSMultiFontImpl::ConvertString(OUString &rString,
- sal_Int32& rIndex)
-{
- typedef ::std::multimap<sal_Unicode, SymbolEntry>::iterator MI;
- typedef ::std::pair<MI, MI> Result;
-
- OUString sRet;
-
- sal_Int32 nLen = rString.getLength();
- if (rIndex >= nLen)
- return sRet;
-
- int nTotal = 0, nResult = 0;
- ::std::vector<Result> aPossibilities;
- aPossibilities.reserve(nLen - rIndex);
- sal_Int32 nStart = rIndex;
- do
- {
- Result aResult = maMagicMap.equal_range(rString[rIndex]);
- int nBitfield = 0;
- for (MI aIndex = aResult.first; aIndex != aResult.second; ++aIndex)
- nBitfield |= aIndex->second.eFont;
-
- if (!nTotal)
- nTotal = nBitfield;
- else
- {
- if (nTotal != nBitfield) //Allow a series of failures
- {
- nTotal &= nBitfield;
- if (!nTotal)
- break;
- }
- }
- nResult = nTotal;
- if (nResult) //Don't bother storing a series of failures
- aPossibilities.push_back(aResult);
- ++rIndex;
- }while(rIndex < nLen);
-
- if (nResult)
- {
- int nI = Symbol;
- while (nI <= nResult)
- {
- if (!(nI & nResult))
- nI = nI << 1;
- else
- break;
- }
- const char* pc = SymbolFontToString(nI);
- sRet = OUString(pc, strlen(pc), RTL_TEXTENCODING_ASCII_US);
-
- sal_Int32 nSize = aPossibilities.size();
- OUStringBuffer sBuff(rString);
- for(sal_Int32 nPos = 0; nPos < nSize; ++nPos)
- {
- const Result &rResult = aPossibilities[nPos];
-
- for (MI aIndex = rResult.first; aIndex != rResult.second; ++aIndex)
- {
- if (aIndex->second.eFont == nI)
- {
- sBuff[nPos + nStart] = aIndex->second.cIndex;
- break;
- }
- }
- }
- rString = sBuff.makeStringAndClear();
- }
-
- return sRet;
-}
-
StarSymbolToMSMultiFont *CreateStarSymbolToMSMultiFont(bool bPerfectOnly)
{
return new StarSymbolToMSMultiFontImpl(bPerfectOnly);
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index 27f6fa2214bb..09043b4fbf47 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -1046,7 +1046,6 @@ static bool _UCBOpenContentSync(
UcbLockBytes::UcbLockBytes( UcbLockBytesHandler* pHandler )
: m_aExpireDate( DateTime::EMPTY )
, m_xInputStream (NULL)
- , m_pCommandThread( NULL )
, m_xHandler( pHandler )
, m_nError( ERRCODE_NONE )
, m_bTerminated (false)
diff --git a/unotools/source/ucbhelper/ucblockbytes.hxx b/unotools/source/ucbhelper/ucblockbytes.hxx
index e84600af28a0..ad432ecf9c77 100644
--- a/unotools/source/ucbhelper/ucblockbytes.hxx
+++ b/unotools/source/ucbhelper/ucblockbytes.hxx
@@ -69,14 +69,9 @@ typedef tools::SvRef<UcbLockBytes> UcbLockBytesRef;
class UcbLockBytesHandler : public SvRefBase
{
- bool m_bActive;
public:
UcbLockBytesHandler()
- : m_bActive( true )
{}
-
- void Activate( bool bActivate = true ) { m_bActive = bActivate; }
- bool IsActive() const { return m_bActive; }
};
typedef tools::SvRef<UcbLockBytesHandler> UcbLockBytesHandlerRef;
@@ -94,7 +89,6 @@ class UcbLockBytes : public virtual SvLockBytes
::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > m_xInputStream;
::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > m_xOutputStream;
::com::sun::star::uno::Reference < ::com::sun::star::io::XSeekable > m_xSeekable;
- void* m_pCommandThread; // is alive only for compatibility reasons
UcbLockBytesHandlerRef m_xHandler;
ErrCode m_nError;
@@ -132,11 +126,6 @@ public:
ErrCode GetError() const
{ return m_nError; }
- // the following properties are available when and after the first DataAvailable callback has been executed
- OUString GetContentType() const;
- OUString GetRealURL() const;
- DateTime GetExpireDate() const;
-
// calling this method delegates the responsibility to call closeinput to the caller!
::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > getInputStream();
@@ -163,12 +152,6 @@ public:
return m_xSeekable;
}
- bool hasInputStream_Impl() const
- {
- osl::MutexGuard aGuard( (const_cast< UcbLockBytes* >(this))->m_aMutex );
- return m_xInputStream.is();
- }
-
void setDontClose_Impl()
{ m_bDontClose = true; }