summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-07-11 15:47:22 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-07-12 00:59:54 +0200
commitc54180baaab97c72d656771219d4111b19f1208e (patch)
tree4557d4273fb5910aaced574ea14c5af8e4ffe056 /tools
parent9a9d12d8b9c81352019ca153d6754c46022c5618 (diff)
callcatcher: remove unused INetURLObject::encodeHostPort
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/urlobj.hxx56
-rw-r--r--tools/source/fsys/urlobj.cxx23
2 files changed, 0 insertions, 79 deletions
diff --git a/tools/inc/tools/urlobj.hxx b/tools/inc/tools/urlobj.hxx
index de779c0fa394..ca694e66d5ce 100644
--- a/tools/inc/tools/urlobj.hxx
+++ b/tools/inc/tools/urlobj.hxx
@@ -624,49 +624,6 @@ public:
void makePortCanonic();
- /** Encode the <hostport> part of a URL.
-
- @ATT Obsolete, because at the moment the <hostport> part of a URL may
- not contain any escape sequences anyway, and because this method does
- not inform the caller whether the given <hostport> part is legal.
-
- @param rTheHostPort The <hostport> part of a URL (for its
- interpretation, see the general discussion for set-methods).
-
- @param eMechanism See the general discussion for set-methods.
-
- @param eCharset See the general discussion for set-methods.
-
- @return The <hostport> part, encoded according to the given mechanism
- and charset ('forbidden' characters replaced by escape sequences).
- */
- static inline rtl::OUString encodeHostPort(ByteString const & rTheHostPort,
- EncodeMechanism eMechanism,
- rtl_TextEncoding eCharset
- = RTL_TEXTENCODING_UTF8);
-
- /** Encode the <hostport> part of a URL.
-
- @ATT Obsolete, because at the moment the <hostport> part of a URL may
- not contain any escape sequences anyway, and because this method does
- not inform the caller whether the given <hostport> part is legal.
-
- @param rTheHostPort The <hostport> part of a URL (for its
- interpretation, see the general discussion for set-methods).
-
- @param eMechanism See the general discussion for set-methods.
-
- @param eCharset See the general discussion for set-methods.
-
- @return The <hostport> part, encoded according to the given mechanism
- and charset ('forbidden' characters replaced by escape sequences).
- */
- static inline rtl::OUString encodeHostPort(rtl::OUString const & rTheHostPort,
- EncodeMechanism eMechanism,
- rtl_TextEncoding eCharset
- = RTL_TEXTENCODING_UTF8)
- { return encodeHostPort(rTheHostPort, false, eMechanism, eCharset); }
-
//========================================================================
// Path:
@@ -1423,10 +1380,6 @@ private:
EncodeMechanism eMechanism, rtl_TextEncoding eCharset,
bool bNetBiosName, rtl::OUStringBuffer* pCanonic);
- static rtl::OUString encodeHostPort(
- rtl::OUString const & rTheHostPort, bool bOctets,
- EncodeMechanism eMechanism, rtl_TextEncoding eCharset);
-
bool setHost(
rtl::OUString const & rTheHost, bool bOctets,
EncodeMechanism eMechanism, rtl_TextEncoding eCharset);
@@ -1817,15 +1770,6 @@ inline bool INetURLObject::SetUserAndPass(rtl::OUString const & rTheUser,
setPassword(rThePassword, false, eMechanism, eCharset));
}
-// static
-inline rtl::OUString INetURLObject::encodeHostPort(ByteString const &
- rTheHostPort,
- EncodeMechanism eMechanism,
- rtl_TextEncoding eCharset)
-{
- return encodeHostPort(extend(rTheHostPort), true, eMechanism, eCharset);
-}
-
inline bool INetURLObject::insertName(rtl::OUString const & rTheName,
bool bAppendFinalSlash,
sal_Int32 nIndex,
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index c8d1e8f10d2f..da3fc0050d6f 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -2909,29 +2909,6 @@ bool INetURLObject::parseHostOrNetBiosName(
}
//============================================================================
-// static
-rtl::OUString INetURLObject::encodeHostPort(rtl::OUString const & rTheHostPort,
- bool bOctets,
- EncodeMechanism eMechanism,
- rtl_TextEncoding eCharset)
-{
- sal_Int32 nPort = rTheHostPort.getLength();
- if (nPort != 0)
- {
- sal_Int32 i = nPort - 1;
- while (i != 0 && INetMIME::isDigit(rTheHostPort.getStr()[i]))
- --i;
- if (rTheHostPort.getStr()[i] == ':')
- nPort = i;
- }
- rtl::OUString aResult(encodeText(rTheHostPort.copy(0, nPort), bOctets,
- PART_HOST_EXTRA, '%', eMechanism, eCharset,
- true));
- aResult += rTheHostPort.copy(nPort);
- return aResult;
-}
-
-//============================================================================
bool INetURLObject::setHost(rtl::OUString const & rTheHost, bool bOctets,
EncodeMechanism eMechanism,
rtl_TextEncoding eCharset)