[Libreoffice-commits] .: tools/inc tools/source
Joseph Powers
jpowers at kemper.freedesktop.org
Wed Jul 6 07:06:11 PDT 2011
tools/inc/tools/inetmsg.hxx | 30 ------------------------------
tools/source/inet/inetmsg.cxx | 40 ++++++----------------------------------
2 files changed, 6 insertions(+), 64 deletions(-)
New commits:
commit d622a584198d3f89a60ec324a51486fca519d7d4
Author: Joseph Powers <jpowers27 at cox.net>
Date: Wed Jul 6 07:05:32 2011 -0700
Remove unused class INetMessageHeaderIterator
diff --git a/tools/inc/tools/inetmsg.hxx b/tools/inc/tools/inetmsg.hxx
index f59f9d1..26a650d 100644
--- a/tools/inc/tools/inetmsg.hxx
+++ b/tools/inc/tools/inetmsg.hxx
@@ -242,36 +242,6 @@ public:
/*=======================================================================
*
- * INetMessageHeaderIterator Interface.
- *
- *=====================================================================*/
-class INetMessageHeaderIterator
-{
- sal_uIntPtr nValueCount;
- List aValueList;
- UniString aEmptyString;
-
-public:
- INetMessageHeaderIterator (
- const INetMessage& rMsg, const UniString& rHdrName);
- virtual ~INetMessageHeaderIterator (void);
-
- sal_uIntPtr GetValueCount (void) const { return nValueCount; }
- const UniString& GetValue (sal_uIntPtr nIndex) const
- {
- if (nIndex < nValueCount)
- {
- return *((UniString*)(aValueList.GetObject(nIndex)));
- }
- else
- {
- return aEmptyString;
- }
- }
-};
-
-/*=======================================================================
- *
* INetRFC822Message Interface.
*
*=====================================================================*/
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx
index eac75e3..13ff543 100644
--- a/tools/source/inet/inetmsg.cxx
+++ b/tools/source/inet/inetmsg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -199,34 +199,6 @@ SvStream& INetMessage::operator>> (SvStream& rStrm)
/*=======================================================================
*
- * INetMessageHeaderIterator Implementation.
- *
- *=====================================================================*/
-INetMessageHeaderIterator::INetMessageHeaderIterator (
- const INetMessage& rMsg, const UniString& rHdrName)
-{
- sal_uIntPtr i, n = rMsg.GetHeaderCount();
- for (i = 0; i < n; i++)
- {
- if (rHdrName.CompareIgnoreCaseToAscii (rMsg.GetHeaderName(i)) == 0)
- {
- UniString *pValue = new UniString (rMsg.GetHeaderValue(i));
- aValueList.Insert (pValue, LIST_APPEND);
- }
- }
- nValueCount = aValueList.Count();
-}
-
-INetMessageHeaderIterator::~INetMessageHeaderIterator (void)
-{
- sal_uIntPtr i, n = aValueList.Count();
- for (i = 0; i < n; i++)
- delete ((UniString*)(aValueList.GetObject(i)));
- aValueList.Clear();
-}
-
-/*=======================================================================
- *
* INetRFC822Message Implementation.
*
*=====================================================================*/
@@ -234,7 +206,7 @@ INetMessageHeaderIterator::~INetMessageHeaderIterator (void)
* ImplINetRFC822MessageHeaderData.
*/
namespace
-{
+{
struct ImplINetRFC822MessageHeaderDataImpl
{
const ByteString* operator()()
@@ -262,8 +234,8 @@ namespace
}
};
- struct ImplINetRFC822MessageHeaderData
- : public rtl::StaticAggregate< const ByteString, ImplINetRFC822MessageHeaderDataImpl > {};
+ struct ImplINetRFC822MessageHeaderData
+ : public rtl::StaticAggregate< const ByteString, ImplINetRFC822MessageHeaderDataImpl > {};
}
#define HDR(n) ImplINetRFC822MessageHeaderData::get()[(n)]
@@ -962,8 +934,8 @@ namespace
}
};
- struct ImplINetMIMEMessageHeaderData
- : public rtl::StaticAggregate< const ByteString, ImplINetMIMEMessageHeaderDataImpl > {};
+ struct ImplINetMIMEMessageHeaderData
+ : public rtl::StaticAggregate< const ByteString, ImplINetMIMEMessageHeaderDataImpl > {};
}
#define MIMEHDR(n) ImplINetMIMEMessageHeaderData::get()[(n)]
More information about the Libreoffice-commits
mailing list