summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-14 09:27:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-14 10:11:33 +0000
commit690ce9f1b95c0bb2e8401771c376d3052009c9af (patch)
tree514eaf197e0f7a5c665c4a847505d924dbf05201 /tools
parentfb0b27491dbb0186ac20574b47c904b4c44eac83 (diff)
callcatcher: more binfilter freed up methods
Change-Id: Iea3716e5c7a21f083f36ce4b8d43ae9fc85227f7
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/inetmime.hxx8
-rw-r--r--tools/source/inet/inetmime.cxx60
2 files changed, 0 insertions, 68 deletions
diff --git a/tools/inc/tools/inetmime.hxx b/tools/inc/tools/inetmime.hxx
index 2e0e483fde2e..296a08e50a9a 100644
--- a/tools/inc/tools/inetmime.hxx
+++ b/tools/inc/tools/inetmime.hxx
@@ -420,11 +420,6 @@ public:
static const sal_Unicode * skipComment(const sal_Unicode * pBegin,
const sal_Unicode * pEnd);
- static const sal_Char * skipLinearWhiteSpaceComment(const sal_Char *
- pBegin,
- const sal_Char *
- pEnd);
-
static const sal_Unicode * skipLinearWhiteSpaceComment(const sal_Unicode *
pBegin,
const sal_Unicode *
@@ -438,9 +433,6 @@ public:
static const sal_Unicode * skipQuotedString(const sal_Unicode * pBegin,
const sal_Unicode * pEnd);
- static bool scanUnsigned(const sal_Char *& rBegin, const sal_Char * pEnd,
- bool bLeadingZeroes, sal_uInt32 & rValue);
-
static bool scanUnsigned(const sal_Unicode *& rBegin,
const sal_Unicode * pEnd, bool bLeadingZeroes,
sal_uInt32 & rValue);
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index 2def17c82266..834583e01c67 100644
--- a/tools/source/inet/inetmime.cxx
+++ b/tools/source/inet/inetmime.cxx
@@ -575,44 +575,6 @@ const sal_Unicode * INetMIME::skipComment(const sal_Unicode * pBegin,
}
// static
-const sal_Char * INetMIME::skipLinearWhiteSpaceComment(const sal_Char *
- pBegin,
- const sal_Char * pEnd)
-{
- DBG_ASSERT(pBegin && pBegin <= pEnd,
- "INetMIME::skipLinearWhiteSpaceComment(): Bad sequence");
-
- while (pBegin != pEnd)
- switch (*pBegin)
- {
- case '\t':
- case ' ':
- ++pBegin;
- break;
-
- case 0x0D: // CR
- if (startsWithLineFolding(pBegin, pEnd))
- pBegin += 3;
- else
- return pBegin;
- break;
-
- case '(':
- {
- const sal_Char * p = skipComment(pBegin, pEnd);
- if (p == pBegin)
- return pBegin;
- pBegin = p;
- break;
- }
-
- default:
- return pBegin;
- }
- return pBegin;
-}
-
-// static
const sal_Unicode * INetMIME::skipLinearWhiteSpaceComment(const sal_Unicode *
pBegin,
const sal_Unicode *
@@ -708,28 +670,6 @@ const sal_Unicode * INetMIME::skipQuotedString(const sal_Unicode * pBegin,
}
// static
-bool INetMIME::scanUnsigned(const sal_Char *& rBegin, const sal_Char * pEnd,
- bool bLeadingZeroes, sal_uInt32 & rValue)
-{
- sal_uInt64 nTheValue = 0;
- const sal_Char * p = rBegin;
- for ( ; p != pEnd; ++p)
- {
- int nWeight = getWeight(*p);
- if (nWeight < 0)
- break;
- nTheValue = 10 * nTheValue + nWeight;
- if (nTheValue > std::numeric_limits< sal_uInt32 >::max())
- return false;
- }
- if (nTheValue == 0 && (p == rBegin || (!bLeadingZeroes && p - rBegin != 1)))
- return false;
- rBegin = p;
- rValue = sal_uInt32(nTheValue);
- return true;
-}
-
-// static
bool INetMIME::scanUnsigned(const sal_Unicode *& rBegin,
const sal_Unicode * pEnd, bool bLeadingZeroes,
sal_uInt32 & rValue)