diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-29 12:40:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-29 15:08:43 +0200 |
commit | 34180700b2686c97cdce0b52ca9578a41a153035 (patch) | |
tree | 073f3753e4483f30efa3c7c769f23971e6a046d5 /idl | |
parent | e710170d906fcb248a5e4ff5a3a90cbf0e20003d (diff) |
loplugin:removeunusedmethods, remove unused stuff
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/bastype.hxx | 3 | ||||
-rw-r--r-- | idl/inc/globals.hxx | 6 | ||||
-rw-r--r-- | idl/source/objects/bastype.cxx | 35 |
3 files changed, 0 insertions, 44 deletions
diff --git a/idl/inc/bastype.hxx b/idl/inc/bastype.hxx index 6c552e86c499..40e990af6442 100644 --- a/idl/inc/bastype.hxx +++ b/idl/inc/bastype.hxx @@ -57,7 +57,6 @@ public: operator bool() const { return nVal; } bool IsSet() const { return bSet; } - friend SvStream& WriteSvBOOL(SvStream &, const SvBOOL &); friend SvStream& operator >> (SvStream &, SvBOOL &); bool ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ); @@ -106,7 +105,6 @@ public: { return !m_aStr.isEmpty(); } - friend SvStream& WriteSvString(SvStream &, const SvString &); friend SvStream& operator >> (SvStream &, SvString &); bool ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ); @@ -152,7 +150,6 @@ public: sal_uInt16 GetMajorVersion() const { return nMajorVersion; } sal_uInt16 GetMinorVersion() const { return nMinorVersion; } - friend SvStream& WriteSvVersion(SvStream &, const SvVersion &); friend SvStream& operator >> (SvStream &, SvVersion &); bool ReadSvIdl( SvTokenStream & rInStm ); }; diff --git a/idl/inc/globals.hxx b/idl/inc/globals.hxx index 3f49ece0855c..b74824494528 100644 --- a/idl/inc/globals.hxx +++ b/idl/inc/globals.hxx @@ -141,13 +141,9 @@ HASH_INLINE(interface) HASH_INLINE(in) HASH_INLINE(out) HASH_INLINE(inout) -HASH_INLINE(String) -HASH_INLINE(UCHAR) -HASH_INLINE(USHORT) HASH_INLINE(uuid) HASH_INLINE(HelpContext) HASH_INLINE(HelpText) -HASH_INLINE(void) HASH_INLINE(shell) HASH_INLINE(Get) HASH_INLINE(Set) @@ -175,7 +171,6 @@ HASH_INLINE(char) HASH_INLINE(BYTE) HASH_INLINE(item) HASH_INLINE(PseudoSlots) -HASH_INLINE(map) HASH_INLINE(Default) HASH_INLINE(HelpFile) HASH_INLINE(Version) @@ -183,7 +178,6 @@ HASH_INLINE(import) HASH_INLINE(SlotIdFile) HASH_INLINE(SvName) HASH_INLINE(SbxName) -HASH_INLINE(ItemName) HASH_INLINE(OdlName) HASH_INLINE(include) HASH_INLINE(ExecMethod) diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx index c2cc6c5c11ac..06a79b6f8df4 100644 --- a/idl/source/objects/bastype.cxx +++ b/idl/source/objects/bastype.cxx @@ -57,14 +57,6 @@ static bool ReadRangeSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm, return false; } -SvStream& WriteSvBOOL(SvStream & rStm, const SvBOOL & rb ) -{ - sal_uInt8 n = int(rb.nVal); - if( rb.bSet ) - n |= 0x02; - rStm.WriteUChar( n ); - return rStm; -} SvStream& operator >> (SvStream & rStm, SvBOOL & rb ) { sal_uInt8 n; @@ -79,27 +71,6 @@ SvStream& operator >> (SvStream & rStm, SvBOOL & rb ) return rStm; } -SvStream& WriteSvVersion(SvStream & rStm, const SvVersion & r ) -{ - if( (r.GetMajorVersion() || r.GetMinorVersion()) - && r.GetMajorVersion() <= 0x0F && r.GetMinorVersion() <= 0x0F ) - { // compress version number in 1 byte - // format first 4 bit for major, then 4 bit for minor - // 0.0 gets not compressed - - int n = r.GetMajorVersion() << 4; - n |= r.GetMinorVersion(); - rStm.WriteUChar( n ); - } - else - { - rStm.WriteUChar( 0 ); - rStm.WriteUInt16( r.GetMajorVersion() ); - rStm.WriteUInt16( r.GetMinorVersion() ); - } - return rStm; -} - SvStream& operator >> (SvStream & rStm, SvVersion & r ) { sal_uInt8 n; @@ -252,12 +223,6 @@ bool SvString::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ) return false; } -SvStream& WriteSvString(SvStream & rStm, const SvString & r ) -{ - write_uInt16_lenPrefixed_uInt8s_FromOString(rStm, r.getString()); - return rStm; -} - SvStream& operator >> (SvStream & rStm, SvString & r ) { r.setString(read_uInt16_lenPrefixed_uInt8s_ToOString(rStm)); |