diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-04 09:24:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-04 09:35:53 +0100 |
commit | bd8dae0313d682349eee7fcc2b9482eca9a90aa8 (patch) | |
tree | 42b7600b13ed8c9e1253d1d9513f145c8cfe73d5 | |
parent | 3846455f87478cc391f3c8da424286e5afb33618 (diff) |
callcatcher: remove unused methods
-rw-r--r-- | binfilter/bf_sc/source/core/data/sc_column2.cxx | 48 | ||||
-rw-r--r-- | binfilter/bf_sc/source/core/tool/sc_chgtrack.cxx | 37 | ||||
-rw-r--r-- | binfilter/bf_svtools/source/numbers/numhead.hxx | 17 | ||||
-rw-r--r-- | binfilter/bf_svtools/source/numbers/svt_numhead.cxx | 52 | ||||
-rw-r--r-- | binfilter/bf_svx/source/items/svx_bulitem.cxx | 30 | ||||
-rw-r--r-- | binfilter/inc/bf_sc/chgtrack.hxx | 2 | ||||
-rw-r--r-- | binfilter/inc/bf_sc/column.hxx | 1 | ||||
-rw-r--r-- | binfilter/inc/bf_svtools/zformat.hxx | 2 | ||||
-rw-r--r-- | binfilter/inc/bf_svx/bulitem.hxx | 1 |
9 files changed, 0 insertions, 190 deletions
diff --git a/binfilter/bf_sc/source/core/data/sc_column2.cxx b/binfilter/bf_sc/source/core/data/sc_column2.cxx index 2d1e6333b..ce4a82bc3 100644 --- a/binfilter/bf_sc/source/core/data/sc_column2.cxx +++ b/binfilter/bf_sc/source/core/data/sc_column2.cxx @@ -233,54 +233,6 @@ namespace binfilter { /*N*/ return nNoteCount; /*N*/ } -/*N*/ void ScColumn::SaveNotes( SvStream& rStream ) const -/*N*/ { -/*N*/ USHORT nSaveMaxRow = pDocument->GetSrcMaxRow(); -/*N*/ USHORT i; -/*N*/ -/*N*/ BOOL bRemoveAny = lcl_RemoveAny( pDocument, nCol, nTab ); -/*N*/ USHORT nNoteCount; -/*N*/ if ( bRemoveAny ) -/*N*/ { -/*?*/ // vorher zaehlen, wieviele Notizen es werden -/*?*/ -/*?*/ nNoteCount = 0; -/*?*/ for (i=0; i<nCount; i++) -/*?*/ if ( pItems[i].pCell->GetNotePtr() && pItems[i].nRow<=nSaveMaxRow && -/*?*/ true ) -/*?*/ ++nNoteCount; -/*N*/ } -/*N*/ else -/*N*/ nNoteCount = NoteCount(nSaveMaxRow); -/*N*/ -/*N*/ // Speichern -/*N*/ // Als Positionen muessen die Indizes gespeichert werden, die beim Laden entstehen, -/*N*/ // also ohne die weggelassenen Zellen mitzuzaehlen. -/*N*/ -/*N*/ ScWriteHeader aHdr(rStream); -/*N*/ rStream << nNoteCount; -/*N*/ -/*N*/ USHORT nDestPos = 0; -/*N*/ for (i=0; i<nCount && rStream.GetError() == SVSTREAM_OK; i++) -/*N*/ { -/*N*/ USHORT nRow = pItems[i].nRow; -/*N*/ if ( !bRemoveAny || true ) -/*N*/ { -/*N*/ const ScPostIt* pNote = pItems[i].pCell->GetNotePtr(); -/*N*/ if ( pNote && nRow <= nSaveMaxRow ) -/*N*/ { -/*N*/ rStream << nDestPos; -/*N*/ rStream << *pNote; -/*N*/ } -/*N*/ ++nDestPos; // nDestPos zaehlt die in SaveData gespeicherten Zellen -/*N*/ } -/*N*/ } -/*N*/ -/*N*/ // SetLostData ist schon in SaveData passiert, wenn noetig -/*N*/ } - -// ----------------------------------------------------------------------------------------- - /*N*/ void ScColumn::CorrectSymbolCells( CharSet eStreamCharSet ) /*N*/ { /*N*/ // #99139# find and correct string cells that are formatted with a symbol font, diff --git a/binfilter/bf_sc/source/core/tool/sc_chgtrack.cxx b/binfilter/bf_sc/source/core/tool/sc_chgtrack.cxx index 8c976e314..364e371a3 100644 --- a/binfilter/bf_sc/source/core/tool/sc_chgtrack.cxx +++ b/binfilter/bf_sc/source/core/tool/sc_chgtrack.cxx @@ -441,43 +441,6 @@ const USHORT nMemPoolChangeActionLinkEntry = (0x8000 - 64) / sizeof(ScChangeActi /*N*/ DeleteCellEntries(); // weg mit den generierten /*N*/ } - -// static -/*N*/ void ScChangeAction::StoreCell( ScBaseCell* pCell, SvStream& rStrm, -/*N*/ ScMultipleWriteHeader& rHdr ) -/*N*/ { -/*N*/ if ( pCell ) -/*N*/ { -/*N*/ CellType eCellType = pCell->GetCellType(); -/*N*/ switch( eCellType ) -/*N*/ { -/*N*/ case CELLTYPE_VALUE: -/*N*/ rStrm << (BYTE) eCellType; -/*N*/ ((ScValueCell*)pCell)->Save( rStrm ); -/*N*/ break; -/*N*/ case CELLTYPE_STRING: -/*N*/ rStrm << (BYTE) eCellType; -/*N*/ ((ScStringCell*)pCell)->Save( rStrm ); -/*N*/ break; -/*N*/ case CELLTYPE_EDIT: -/*N*/ rStrm << (BYTE) eCellType; -/*N*/ ((ScEditCell*)pCell)->Save( rStrm ); -/*N*/ break; -/*N*/ case CELLTYPE_FORMULA: -/*N*/ rStrm << (BYTE) eCellType; -/*N*/ rStrm << ((ScFormulaCell*)pCell)->aPos; -/*N*/ ((ScFormulaCell*)pCell)->Save( rStrm, rHdr ); -/*N*/ break; -/*N*/ default: -/*N*/ OSL_FAIL( "ScChangeAction::StoreCell: unknown CellType" ); -/*N*/ rStrm << (BYTE) CELLTYPE_NONE; -/*N*/ } -/*N*/ } -/*N*/ else -/*N*/ rStrm << (BYTE) CELLTYPE_NONE; -/*N*/ } - - // static /*N*/ ScBaseCell* ScChangeAction::LoadCell( SvStream& rStrm, /*N*/ ScMultipleReadHeader& rHdr, ScDocument* pDoc, USHORT nVer ) diff --git a/binfilter/bf_svtools/source/numbers/numhead.hxx b/binfilter/bf_svtools/source/numbers/numhead.hxx index 32941a497..edccdc724 100644 --- a/binfilter/bf_svtools/source/numbers/numhead.hxx +++ b/binfilter/bf_svtools/source/numbers/numhead.hxx @@ -90,23 +90,6 @@ public: static void Skip( SvStream& ); // komplett ueberspringen }; -class ImpSvNumMultipleWriteHeader -{ -private: - SvStream& rStream; - SvMemoryStream aMemStream; - ULONG nDataPos; - sal_uInt32 nDataSize; - ULONG nEntryStart; - -public: - ImpSvNumMultipleWriteHeader(SvStream& rNewStream, ULONG nDefault = 0); - ~ImpSvNumMultipleWriteHeader(); - - void StartEntry(); - void EndEntry(); -}; - } #endif diff --git a/binfilter/bf_svtools/source/numbers/svt_numhead.cxx b/binfilter/bf_svtools/source/numbers/svt_numhead.cxx index 0fa0a6aad..580d37d07 100644 --- a/binfilter/bf_svtools/source/numbers/svt_numhead.cxx +++ b/binfilter/bf_svtools/source/numbers/svt_numhead.cxx @@ -197,58 +197,6 @@ ULONG ImpSvNumMultipleReadHeader::BytesLeft() const return 0; } -// ----------------------------------------------------------------------- - -//#pragma SEG_FUNCDEF(numhead_0a) - -ImpSvNumMultipleWriteHeader::ImpSvNumMultipleWriteHeader(SvStream& rNewStream, - ULONG nDefault) : - rStream( rNewStream ), - aMemStream( 4096, 4096 ) -{ - nDataSize = nDefault; - rStream << nDataSize; - - nDataPos = rStream.Tell(); - nEntryStart = nDataPos; -} - -//#pragma SEG_FUNCDEF(numhead_0b) - -ImpSvNumMultipleWriteHeader::~ImpSvNumMultipleWriteHeader() -{ - ULONG nDataEnd = rStream.Tell(); - - rStream << (USHORT) SV_NUMID_SIZES; - rStream << static_cast<sal_uInt32>(aMemStream.Tell()); - rStream.Write( aMemStream.GetData(), aMemStream.Tell() ); - - if ( nDataEnd - nDataPos != nDataSize ) // Default getroffen? - { - nDataSize = nDataEnd - nDataPos; - ULONG nPos = rStream.Tell(); - rStream.Seek(nDataPos-sizeof(sal_uInt32)); - rStream << nDataSize; // Groesse am Anfang eintragen - rStream.Seek(nPos); - } -} - -//#pragma SEG_FUNCDEF(numhead_0c) - -void ImpSvNumMultipleWriteHeader::EndEntry() -{ - ULONG nPos = rStream.Tell(); - aMemStream << static_cast<sal_uInt32>(nPos - nEntryStart); -} - -//#pragma SEG_FUNCDEF(numhead_0e) - -void ImpSvNumMultipleWriteHeader::StartEntry() -{ - ULONG nPos = rStream.Tell(); - nEntryStart = nPos; -} - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_svx/source/items/svx_bulitem.cxx b/binfilter/bf_svx/source/items/svx_bulitem.cxx index 54c94d7f4..39a0e42bd 100644 --- a/binfilter/bf_svx/source/items/svx_bulitem.cxx +++ b/binfilter/bf_svx/source/items/svx_bulitem.cxx @@ -46,36 +46,6 @@ namespace binfilter { /*N*/ TYPEINIT1(SvxBulletItem,SfxPoolItem); -// ----------------------------------------------------------------------- - -/*N*/ void SvxBulletItem::StoreFont( SvStream& rStream, const Font& rFont ) -/*N*/ { -/*N*/ USHORT nTemp; -/*N*/ -/*N*/ rStream << rFont.GetColor(); -/*N*/ nTemp = (USHORT)rFont.GetFamily(); rStream << nTemp; -/*N*/ -/*N*/ // #90477# nTemp = (USHORT)GetStoreCharSet( rFont.GetCharSet(), rStream.GetVersion() ); -/*N*/ nTemp = (USHORT)GetSOStoreTextEncoding((rtl_TextEncoding)rFont.GetCharSet(), (sal_uInt16)rStream.GetVersion()); -/*N*/ rStream << nTemp; -/*N*/ -/*N*/ nTemp = (USHORT)rFont.GetPitch(); rStream << nTemp; -/*N*/ nTemp = (USHORT)rFont.GetAlign(); rStream << nTemp; -/*N*/ nTemp = (USHORT)rFont.GetWeight(); rStream << nTemp; -/*N*/ nTemp = (USHORT)rFont.GetUnderline(); rStream << nTemp; -/*N*/ nTemp = (USHORT)rFont.GetStrikeout(); rStream << nTemp; -/*N*/ nTemp = (USHORT)rFont.GetItalic(); rStream << nTemp; -/*N*/ -/*N*/ // UNICODE: rStream << rFont.GetName(); -/*N*/ rStream.WriteByteString(rFont.GetName()); -/*N*/ -/*N*/ rStream << rFont.IsOutline(); -/*N*/ rStream << rFont.IsShadow(); -/*N*/ rStream << rFont.IsTransparent(); -/*N*/ } - -// ----------------------------------------------------------------------- - /*N*/ Font SvxBulletItem::CreateFont( SvStream& rStream, USHORT nVer ) /*N*/ { /*N*/ Font aFont; diff --git a/binfilter/inc/bf_sc/chgtrack.hxx b/binfilter/inc/bf_sc/chgtrack.hxx index a7821a237..fd6f3c324 100644 --- a/binfilter/inc/bf_sc/chgtrack.hxx +++ b/binfilter/inc/bf_sc/chgtrack.hxx @@ -278,8 +278,6 @@ protected: ScMultipleReadHeader&, ScChangeTrack* ); virtual ~ScChangeAction(); /*N*/ -/*N*/ static void StoreCell( ScBaseCell*, SvStream&, -/*N*/ ScMultipleWriteHeader& ); /*N*/ static ScBaseCell* LoadCell( SvStream&, ScMultipleReadHeader&, /*N*/ ScDocument*, USHORT nVer ); /*N*/ diff --git a/binfilter/inc/bf_sc/column.hxx b/binfilter/inc/bf_sc/column.hxx index 2e16a575c..1288fa97d 100644 --- a/binfilter/inc/bf_sc/column.hxx +++ b/binfilter/inc/bf_sc/column.hxx @@ -292,7 +292,6 @@ public: void LoadData( SvStream& rStream ); void LoadNotes( SvStream& rStream ); - void SaveNotes( SvStream& rStream ) const; BOOL Load( SvStream& rStream, ScMultipleReadHeader& rHdr ); BOOL Save( SvStream&, ScMultipleWriteHeader& ) const {return false; } diff --git a/binfilter/inc/bf_svtools/zformat.hxx b/binfilter/inc/bf_svtools/zformat.hxx index 74759ccae..e31b47a80 100644 --- a/binfilter/inc/bf_svtools/zformat.hxx +++ b/binfilter/inc/bf_svtools/zformat.hxx @@ -57,7 +57,6 @@ namespace binfilter { class ImpSvNumberformatScan; // format code string scanner class ImpSvNumberInputScan; // input string scanner -class ImpSvNumMultipleWriteHeader; // compatible file format class ImpSvNumMultipleReadHeader; // compatible file format class SvNumberFormatter; @@ -225,7 +224,6 @@ public: NfHackConversion Load( SvStream& rStream, ImpSvNumMultipleReadHeader& rHdr, SvNumberFormatter* pConverter, ImpSvNumberInputScan& rISc ); - void Save( SvStream&, ImpSvNumMultipleWriteHeader& ) const {}; // Load a string which might contain an Euro symbol, // in fact that could be any string used in number formats. diff --git a/binfilter/inc/bf_svx/bulitem.hxx b/binfilter/inc/bf_svx/bulitem.hxx index 9db895f32..81fed541d 100644 --- a/binfilter/inc/bf_svx/bulitem.hxx +++ b/binfilter/inc/bf_svx/bulitem.hxx @@ -130,7 +130,6 @@ public: virtual USHORT GetVersion(USHORT nFileVersion) const; virtual int operator==( const SfxPoolItem& ) const; - static void StoreFont( SvStream&, const Font& ); static Font CreateFont( SvStream&, USHORT nVer ); USHORT& GetValidMask() { return nValidMask; } |