summaryrefslogtreecommitdiff
path: root/comphelper/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-28 14:08:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-05 09:18:15 +0000
commitf80d46233150d36183ec3e03708f9f6290c8c339 (patch)
tree6711eae57d7fe77f005c6be2987b4457f4598872 /comphelper/source
parent5a4c200bb75e9047b8780a9c1cfcad6caf3f6023 (diff)
callcatcher: drop some unused methods
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/misc/sequenceashashmap.cxx92
1 files changed, 0 insertions, 92 deletions
diff --git a/comphelper/source/misc/sequenceashashmap.cxx b/comphelper/source/misc/sequenceashashmap.cxx
index de2715b33e45..9c7a4cd81a6e 100644
--- a/comphelper/source/misc/sequenceashashmap.cxx
+++ b/comphelper/source/misc/sequenceashashmap.cxx
@@ -243,41 +243,6 @@ const css::uno::Any SequenceAsHashMap::getAsConstAny(::sal_Bool bAsPropertyValue
}
/*-----------------------------------------------
- 30.07.2007 14:10
------------------------------------------------*/
-const css::uno::Sequence< css::uno::Any > SequenceAsHashMap::getAsConstAnyList(::sal_Bool bAsPropertyValueList) const
-{
- ::sal_Int32 i = 0;
- ::sal_Int32 c = (::sal_Int32)size();
- css::uno::Sequence< css::uno::Any > lDestination(c);
- css::uno::Any* pDestination = lDestination.getArray();
-
- for (const_iterator pThis = begin();
- pThis != end() ;
- ++pThis )
- {
- if (bAsPropertyValueList)
- {
- css::beans::PropertyValue aProp;
- aProp.Name = pThis->first;
- aProp.Value = pThis->second;
- pDestination[i] = css::uno::makeAny(aProp);
- }
- else
- {
- css::beans::NamedValue aProp;
- aProp.Name = pThis->first;
- aProp.Value = pThis->second;
- pDestination[i] = css::uno::makeAny(aProp);
- }
-
- ++i;
- }
-
- return lDestination;
-}
-
-/*-----------------------------------------------
04.11.2003 08:30
-----------------------------------------------*/
const css::uno::Sequence< css::beans::NamedValue > SequenceAsHashMap::getAsConstNamedValueList() const
@@ -339,63 +304,6 @@ void SequenceAsHashMap::update(const SequenceAsHashMap& rUpdate)
}
}
-/*-----------------------------------------------
- 04.11.2003 08:30
------------------------------------------------*/
-#if OSL_DEBUG_LEVEL > 1
-void SequenceAsHashMap::dbg_dumpToFile(const char* pFileName,
- const char* pComment ) const
-{
- if (!pFileName || !pComment)
- return;
-
- FILE* pFile = fopen(pFileName, "a");
- if (!pFile)
- return;
-
- ::rtl::OUStringBuffer sBuffer(1000);
- sBuffer.appendAscii("\n----------------------------------------\n");
- sBuffer.appendAscii(pComment );
- sBuffer.appendAscii("\n----------------------------------------\n");
- sal_Int32 i = 0;
- for (const_iterator pIt = begin();
- pIt != end() ;
- ++pIt )
- {
- sBuffer.appendAscii("[" );
- sBuffer.append (i++ );
- sBuffer.appendAscii("] " );
- sBuffer.appendAscii("\"" );
- sBuffer.append (pIt->first);
- sBuffer.appendAscii("\" = \"" );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xv;
- ::rtl::OUString sv;
- sal_Int32 nv;
- sal_Bool bv;
-
- if (pIt->second >>= sv)
- sBuffer.append(sv);
- else
- if (pIt->second >>= nv)
- sBuffer.append(nv);
- else
- if (pIt->second >>= bv)
- sBuffer.appendAscii(bv ? "true" : "false");
- else
- if (pIt->second >>= xv)
- sBuffer.appendAscii(xv.is() ? "object" : "null");
- else
- sBuffer.appendAscii("???");
-
- sBuffer.appendAscii("\"\n");
- }
-
- fprintf(pFile, ::rtl::OUStringToOString(sBuffer.makeStringAndClear(), RTL_TEXTENCODING_UTF8).getStr());
- fclose(pFile);
-}
-#endif // OSL_DEBUG_LEVEL > 1
-
} // namespace comphelper
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */