diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-07-11 15:52:32 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-07-12 00:59:54 +0200 |
commit | 229e44242af8934f4ef41b3b86650c304a9d5a1f (patch) | |
tree | 1a9dd156b9665533e25b824ea36e8a693b4f7b60 /tools | |
parent | 77c7a7fab5984539cab438831e04d56d4fc65849 (diff) |
callcatcher: remove unused INetURLObject::makePortCanonic
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/urlobj.hxx | 2 | ||||
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 27 |
2 files changed, 0 insertions, 29 deletions
diff --git a/tools/inc/tools/urlobj.hxx b/tools/inc/tools/urlobj.hxx index b164869ea220..f8caeee0d11a 100644 --- a/tools/inc/tools/urlobj.hxx +++ b/tools/inc/tools/urlobj.hxx @@ -620,8 +620,6 @@ public: bool SetPort(sal_uInt32 nThePort); - void makePortCanonic(); - //======================================================================== // Path: diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 0765490527a2..bf3cf2e95a4d 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -4350,33 +4350,6 @@ bool INetURLObject::SetPort(sal_uInt32 nThePort) } //============================================================================ -void INetURLObject::makePortCanonic() -{ - if (m_aPort.isPresent()) - { - sal_Unicode const * p = m_aAbsURIRef.getStr() + m_aPort.getBegin(); - sal_Unicode const * pEnd = p + m_aPort.getLength(); - sal_uInt32 nThePort; - if (INetMIME::scanUnsigned(p, pEnd, true, nThePort) && p == pEnd) - { - sal_Int32 nDelta; - if (nThePort != 0 && nThePort == getSchemeInfo().m_nDefaultPort) - { - lcl_Erase(m_aAbsURIRef, m_aPort.getBegin() - 1, - m_aPort.getLength() + 1); - nDelta = m_aPort.clear() - 1; - } - else - nDelta = m_aPort.set(m_aAbsURIRef, - rtl::OUString::valueOf(sal_Int64(nThePort))); - m_aPath += nDelta; - m_aQuery += nDelta; - m_aFragment += nDelta; - } - } -} - -//============================================================================ sal_Int32 INetURLObject::getSegmentCount(bool bIgnoreFinalSlash) const { if (!checkHierarchical()) |