summaryrefslogtreecommitdiff
path: root/oox/source/helper
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-02-23 21:22:21 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2012-02-23 22:45:08 +0100
commit660cb78cd6900ffebe215ad4b3913bbe35ac9883 (patch)
tree7b267b359c1649c3c8bfe43b3e106c578e804c8c /oox/source/helper
parentcf2dede2132eef56bda324396ede7ee61d8f4a2b (diff)
unusedcode: remove something from oox
Diffstat (limited to 'oox/source/helper')
-rw-r--r--oox/source/helper/attributelist.cxx24
-rw-r--r--oox/source/helper/propertymap.cxx35
2 files changed, 0 insertions, 59 deletions
diff --git a/oox/source/helper/attributelist.cxx b/oox/source/helper/attributelist.cxx
index 2d7445037c77..33f4ed554437 100644
--- a/oox/source/helper/attributelist.cxx
+++ b/oox/source/helper/attributelist.cxx
@@ -204,20 +204,6 @@ OptValue< sal_Int32 > AttributeList::getIntegerHex( sal_Int32 nAttrToken ) const
return OptValue< sal_Int32 >( bValid, bValid ? AttributeConversion::decodeIntegerHex( aValue ) : 0 );
}
-OptValue< sal_uInt32 > AttributeList::getUnsignedHex( sal_Int32 nAttrToken ) const
-{
- OUString aValue = mxAttribs->getOptionalValue( nAttrToken );
- bool bValid = !aValue.isEmpty();
- return OptValue< sal_uInt32 >( bValid, bValid ? AttributeConversion::decodeUnsignedHex( aValue ) : 0 );
-}
-
-OptValue< sal_Int64 > AttributeList::getHyperHex( sal_Int32 nAttrToken ) const
-{
- OUString aValue = mxAttribs->getOptionalValue( nAttrToken );
- bool bValid = !aValue.isEmpty();
- return OptValue< sal_Int64 >( bValid, bValid ? AttributeConversion::decodeHyperHex( aValue ) : 0 );
-}
-
OptValue< bool > AttributeList::getBool( sal_Int32 nAttrToken ) const
{
// boolean attributes may be "t", "f", "true", "false", "on", "off", "1", or "0"
@@ -301,16 +287,6 @@ sal_Int32 AttributeList::getIntegerHex( sal_Int32 nAttrToken, sal_Int32 nDefault
return getIntegerHex( nAttrToken ).get( nDefault );
}
-sal_uInt32 AttributeList::getUnsignedHex( sal_Int32 nAttrToken, sal_uInt32 nDefault ) const
-{
- return getUnsignedHex( nAttrToken ).get( nDefault );
-}
-
-sal_Int64 AttributeList::getHyperHex( sal_Int32 nAttrToken, sal_Int64 nDefault ) const
-{
- return getHyperHex( nAttrToken ).get( nDefault );
-}
-
bool AttributeList::getBool( sal_Int32 nAttrToken, bool bDefault ) const
{
return getBool( nAttrToken ).get( bDefault );
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx
index bf92f7a73d3f..955d867a3a3e 100644
--- a/oox/source/helper/propertymap.cxx
+++ b/oox/source/helper/propertymap.cxx
@@ -120,7 +120,6 @@ typedef ::cppu::WeakImplHelper2< XPropertySet, XPropertySetInfo > GenericPropert
class GenericPropertySet : public GenericPropertySetBase, private ::osl::Mutex
{
public:
- explicit GenericPropertySet();
explicit GenericPropertySet( const PropertyMap& rPropMap );
// XPropertySet
@@ -144,10 +143,6 @@ private:
// ----------------------------------------------------------------------------
-GenericPropertySet::GenericPropertySet()
-{
-}
-
GenericPropertySet::GenericPropertySet( const PropertyMap& rPropMap )
{
const PropertyNameVector& rPropNames = StaticPropertyNameVector::get();
@@ -228,12 +223,6 @@ PropertyMap::PropertyMap() :
return StaticPropertyNameVector::get()[ nPropId ];
}
-const Any* PropertyMap::getProperty( sal_Int32 nPropId ) const
-{
- const_iterator aIt = find( nPropId );
- return (aIt == end()) ? 0 : &aIt->second;
-}
-
void PropertyMap::assignAll( const PropertyMap& rPropMap )
{
for( PropertyMap::const_iterator it=rPropMap.begin(); it != rPropMap.end(); ++it )
@@ -442,30 +431,6 @@ static void lclDumpAnyValue( Any value)
fprintf (stderr,"??? <unhandled type %s>\n", USS(value.getValueTypeName()));
}
-void PropertyMap::dump( Reference< XPropertySet > rXPropSet )
-{
- Reference< XPropertySetInfo > info = rXPropSet->getPropertySetInfo ();
- Sequence< Property > props = info->getProperties ();
-
- OSL_TRACE("dump props, len: %d", props.getLength ());
-
- for (int i=0; i < props.getLength (); i++) {
- OString name = OUStringToOString( props [i].Name, RTL_TEXTENCODING_UTF8);
- fprintf (stderr,"%30s = ", name.getStr() );
-
- try {
- lclDumpAnyValue (rXPropSet->getPropertyValue( props [i].Name ));
- } catch (const Exception&) {
- fprintf (stderr,"unable to get '%s' value\n", USS(props [i].Name));
- }
- }
-}
-
-void PropertyMap::dump()
-{
- dump( Reference< XPropertySet >( makePropertySet(), UNO_QUERY ) );
-}
-
static void printLevel (int level)
{
for (int i=0; i<level; i++)