diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-11-13 21:02:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-11-14 10:11:32 +0000 |
commit | a94b6ec2d57cab51d79329ea62d908f3b3713505 (patch) | |
tree | 68dd3fe95d4e46e24fb68b225d5ef93310593cda /tools | |
parent | add a way to extract variables from config_host/build and shell-export them (diff) | |
download | core-a94b6ec2d57cab51d79329ea62d908f3b3713505.tar.gz core-a94b6ec2d57cab51d79329ea62d908f3b3713505.zip |
callcatcher: update unused code post binfilter death
Change-Id: I5b25d14ef2769126f98523551597f43812b9feb7
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/inetmime.hxx | 5 | ||||
-rw-r--r-- | tools/inc/tools/poly.hxx | 2 | ||||
-rw-r--r-- | tools/source/generic/poly2.cxx | 10 | ||||
-rw-r--r-- | tools/source/inet/inetmime.cxx | 205 |
4 files changed, 0 insertions, 222 deletions
diff --git a/tools/inc/tools/inetmime.hxx b/tools/inc/tools/inetmime.hxx index 5131f995900c..2e0e483fde2e 100644 --- a/tools/inc/tools/inetmime.hxx +++ b/tools/inc/tools/inetmime.hxx @@ -452,11 +452,6 @@ public: sal_Size & rLength, bool & rModify); - static sal_Char const * scanParameters(sal_Char const * pBegin, - sal_Char const * pEnd, - INetContentTypeParameterList * - pParameters); - static sal_Unicode const * scanParameters(sal_Unicode const * pBegin, sal_Unicode const * pEnd, INetContentTypeParameterList * diff --git a/tools/inc/tools/poly.hxx b/tools/inc/tools/poly.hxx index fc6c57e5bd5d..980840f66008 100644 --- a/tools/inc/tools/poly.hxx +++ b/tools/inc/tools/poly.hxx @@ -247,8 +247,6 @@ public: void GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const; void GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const; - void GetDifference( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const; - void GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const; void Move( long nHorzMove, long nVertMove ); void Translate( const Point& rTrans ); diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx index 732f9b4b4060..a6dff0239a24 100644 --- a/tools/source/generic/poly2.cxx +++ b/tools/source/generic/poly2.cxx @@ -319,16 +319,6 @@ void PolyPolygon::GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) ImplDoOperation( rPolyPoly, rResult, POLY_CLIP_UNION ); } -void PolyPolygon::GetDifference( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const -{ - ImplDoOperation( rPolyPoly, rResult, POLY_CLIP_DIFF ); -} - -void PolyPolygon::GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const -{ - ImplDoOperation( rPolyPoly, rResult, POLY_CLIP_XOR ); -} - void PolyPolygon::ImplDoOperation( const PolyPolygon& rPolyPoly, PolyPolygon& rResult, sal_uIntPtr nOperation ) const { // Convert to B2DPolyPolygon, temporarily. It might be diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx index ae1bdb8f0fa0..2def17c82266 100644 --- a/tools/source/inet/inetmime.cxx +++ b/tools/source/inet/inetmime.cxx @@ -825,211 +825,6 @@ const sal_Unicode * INetMIME::scanQuotedBlock(const sal_Unicode * pBegin, } // static -sal_Char const * INetMIME::scanParameters(sal_Char const * pBegin, - sal_Char const * pEnd, - INetContentTypeParameterList * - pParameters) -{ - ParameterList aList; - sal_Char const * pParameterBegin = pBegin; - for (sal_Char const * p = pParameterBegin;; pParameterBegin = p) - { - pParameterBegin = skipLinearWhiteSpaceComment(p, pEnd); - if (pParameterBegin == pEnd || *pParameterBegin != ';') - break; - p = pParameterBegin + 1; - - sal_Char const * pAttributeBegin = skipLinearWhiteSpaceComment(p, - pEnd); - p = pAttributeBegin; - bool bDowncaseAttribute = false; - while (p != pEnd && isTokenChar(*p) && *p != '*') - { - bDowncaseAttribute = bDowncaseAttribute || isUpperCase(*p); - ++p; - } - if (p == pAttributeBegin) - break; - rtl::OString aAttribute(pAttributeBegin, (p - pAttributeBegin)); - if (bDowncaseAttribute) - aAttribute = aAttribute.toAsciiLowerCase(); - - sal_uInt32 nSection = 0; - if (p != pEnd && *p == '*') - { - ++p; - if (p != pEnd && isDigit(*p) - && !scanUnsigned(p, pEnd, false, nSection)) - break; - } - - bool bPresent; - Parameter ** pPos = aList.find(aAttribute, nSection, bPresent); - - bool bExtended = false; - if (p != pEnd && *p == '*') - { - ++p; - bExtended = true; - } - - p = skipLinearWhiteSpaceComment(p, pEnd); - - if (p == pEnd || *p != '=') - break; - - p = skipLinearWhiteSpaceComment(p + 1, pEnd); - - rtl::OString aCharset; - rtl::OString aLanguage; - rtl::OStringBuffer aValue; - if (bExtended) - { - if (nSection == 0) - { - sal_Char const * pCharsetBegin = p; - bool bDowncaseCharset = false; - while (p != pEnd && isTokenChar(*p) && *p != '\'') - { - bDowncaseCharset = bDowncaseCharset || isUpperCase(*p); - ++p; - } - if (p == pCharsetBegin) - break; - if (pParameters) - { - aCharset = rtl::OString( - pCharsetBegin, p - pCharsetBegin); - if (bDowncaseCharset) - aCharset = aCharset.toAsciiLowerCase(); - } - - if (p == pEnd || *p != '\'') - break; - ++p; - - sal_Char const * pLanguageBegin = p; - bool bDowncaseLanguage = false; - int nLetters = 0; - for (; p != pEnd; ++p) - if (isAlpha(*p)) - { - if (++nLetters > 8) - break; - bDowncaseLanguage = bDowncaseLanguage - || isUpperCase(*p); - } - else if (*p == '-') - { - if (nLetters == 0) - break; - nLetters = 0; - } - else - break; - if (nLetters == 0 || nLetters > 8) - break; - if (pParameters) - { - aLanguage = rtl::OString( - pLanguageBegin, p - pLanguageBegin); - if (bDowncaseLanguage) - aLanguage = aLanguage.toAsciiLowerCase(); - } - - if (p == pEnd || *p != '\'') - break; - ++p; - } - if (pParameters) - { - while (p != pEnd && (isTokenChar(*p) || !isUSASCII(*p))) - { - if (*p == '%') - { - if (p + 2 < pEnd) - { - int nWeight1 = getHexWeight(p[1]); - int nWeight2 = getHexWeight(p[2]); - if (nWeight1 >= 0 && nWeight2 >= 0) - { - aValue.append(sal_Char(nWeight1 << 4 | nWeight2)); - p += 3; - continue; - } - } - } - aValue.append(*p++); - } - } - else - while (p != pEnd && (isTokenChar(*p) || !isUSASCII(*p))) - ++p; - } - else if (p != pEnd && *p == '"') - { - if (pParameters) - { - bool bInvalid = false; - for (++p;;) - { - if (p == pEnd) - { - bInvalid = true; - break; - } - else if (*p == '"') - { - ++p; - break; - } - else if (*p == 0x0D) // CR - { - if (pEnd - p < 3 || p[1] != 0x0A // LF - || !isWhiteSpace(p[2])) - { - bInvalid = true; - break; - } - p += 2; - } - else if (*p == '\\' && ++p == pEnd) - { - bInvalid = true; - break; - } - aValue.append(*p++); - } - if (bInvalid) - break; - } - else - { - sal_Char const * pStringEnd = skipQuotedString(p, pEnd); - if (p == pStringEnd) - break; - p = pStringEnd; - } - } - else - { - sal_Char const * pTokenBegin = p; - while (p != pEnd && (isTokenChar(*p) || !isUSASCII(*p))) - ++p; - if (p == pTokenBegin) - break; - if (pParameters) - aValue.append(pTokenBegin, static_cast< sal_Int32 >(p - pTokenBegin)); - } - - if (!bPresent) - *pPos = new Parameter(*pPos, aAttribute, aCharset, aLanguage, - aValue.makeStringAndClear(), nSection, bExtended); - } - return parseParameters(aList, pParameters) ? pParameterBegin : pBegin; -} - -// static sal_Unicode const * INetMIME::scanParameters(sal_Unicode const * pBegin, sal_Unicode const * pEnd, INetContentTypeParameterList * |