summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-07-26 23:32:40 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-07-26 23:39:04 +0200
commitbf2373daf50595c02741f63d941fda0462535d62 (patch)
tree8648bb9d6328a43d5c1e52ca2169097ada413251 /tools
parentbb4b28f3642e6fd86881c0fd4c030b5872cde7fa (diff)
callcatcher: remove unused methods
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/b3dtrans.hxx4
-rw-r--r--tools/inc/tools/config.hxx7
-rw-r--r--tools/inc/tools/fsys.hxx1
-rw-r--r--tools/source/fsys/tdir.cxx109
-rw-r--r--tools/source/generic/b3dtrans.cxx14
-rw-r--r--tools/source/generic/config.cxx64
6 files changed, 1 insertions, 198 deletions
diff --git a/tools/inc/tools/b3dtrans.hxx b/tools/inc/tools/b3dtrans.hxx
index 6385cbad507c..b97debabe863 100644
--- a/tools/inc/tools/b3dtrans.hxx
+++ b/tools/inc/tools/b3dtrans.hxx
@@ -183,10 +183,6 @@ public:
const Rectangle& GetViewportRectangle() { return maViewportRectangle; }
void CalcViewport();
- // Bounds des Viewports lesen
- const basegfx::B3DVector& GetScale();
- const basegfx::B3DVector& GetTranslate();
-
// Direkter Zugriff auf verschiedene Transformationen
const basegfx::B3DPoint WorldToEyeCoor(const basegfx::B3DPoint& rVec);
const basegfx::B3DPoint EyeToWorldCoor(const basegfx::B3DPoint& rVec);
diff --git a/tools/inc/tools/config.hxx b/tools/inc/tools/config.hxx
index fae05fb8bc42..b09e6aadc0da 100644
--- a/tools/inc/tools/config.hxx
+++ b/tools/inc/tools/config.hxx
@@ -56,7 +56,6 @@ private:
#endif
public:
- Config();
Config( const XubString& rFileName );
~Config();
@@ -81,19 +80,13 @@ public:
ByteString ReadKey( sal_uInt16 nKey ) const;
sal_uInt16 GetKeyCount() const;
- void EnterLock();
- void LeaveLock();
sal_Bool IsLocked() const { return (mnLockCount != 0); }
- sal_Bool Update();
void Flush();
void EnablePersistence( sal_Bool bPersistence = sal_True )
{ mbPersistence = bPersistence; }
sal_Bool IsPersistenceEnabled() const { return mbPersistence; }
- void SetLineEnd( LineEnd eLineEnd );
- LineEnd GetLineEnd() const;
-
private:
TOOLS_DLLPRIVATE Config( const Config& rConfig );
TOOLS_DLLPRIVATE Config& operator = ( const Config& rConfig );
diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx
index d63dee9801dc..faa454d451cc 100644
--- a/tools/inc/tools/fsys.hxx
+++ b/tools/inc/tools/fsys.hxx
@@ -429,7 +429,6 @@ private:
TOOLS_DLLPRIVATE Dir& operator=( const Dir& ); // not allowed
#ifdef _DIR_CXX
- TOOLS_DLLPRIVATE FSysError ImpSetSort( std::va_list pArgs, FSysSort nSort );
TOOLS_DLLPRIVATE void Construct( DirEntryKind nKind = FSYS_KIND_DIR|FSYS_KIND_FILE );
#endif
diff --git a/tools/source/fsys/tdir.cxx b/tools/source/fsys/tdir.cxx
index db811f35e76b..d500a3896de7 100644
--- a/tools/source/fsys/tdir.cxx
+++ b/tools/source/fsys/tdir.cxx
@@ -439,115 +439,6 @@ Dir::~Dir()
/*************************************************************************
|*
-|* Dir::ImpSetSort()
-|*
-*************************************************************************/
-
-FSysError Dir::ImpSetSort( std::va_list pArgs, int nFirstSort )
-{
- sal_Bool bLast;
- FSysSort aSort;
- FSysSortList *pNewSortLst = new FSysSortList;
-
- aSort = nFirstSort;
- do
- {
- // letztes Kriterium?
- bLast = FSYS_SORT_END == (aSort & FSYS_SORT_END);
- aSort &= ~FSYS_SORT_END;
-
- FSysSort nSort = aSort & ~(sal_uInt16)FSYS_SORT_ASCENDING
- & ~(sal_uInt16)FSYS_SORT_DESCENDING;
-
- // g"utliges Sortierkriterium?
- if ( ( nSort == FSYS_SORT_NAME ) ||
- ( nSort == FSYS_SORT_SIZE ) ||
- ( nSort == FSYS_SORT_EXT ) ||
- ( nSort == FSYS_SORT_CREATED ) ||
- ( nSort == FSYS_SORT_MODIFYED ) ||
- ( nSort == FSYS_SORT_ACCESSED ) ||
- ( nSort == FSYS_SORT_KIND ) )
- {
- pNewSortLst->push_back( aSort );
- aSort = va_arg( pArgs, FSysSort );
- }
- else
- { // ungueltiger Sort oder FSYS_SORT_NONE
- pNewSortLst->clear();
- delete pNewSortLst;
- if ( aSort == FSYS_SORT_NONE )
- {
- if ( pSortLst ) {
- delete pSortLst;
- pSortLst = NULL;
- }
- return FSYS_ERR_OK;
- }
- else
- {
- return FSYS_ERR_NOTSUPPORTED;
- }
- }
- } while ( !bLast );
-
- va_end( pArgs );
-
- //Enfernen der alten Sort-Elemente
- if ( pSortLst )
- {
- pSortLst->clear();
- delete pSortLst;
- }
- pSortLst = pNewSortLst;
-
- //Jetzt noch neu Sortieren...
-
- //Wenn keine FileStats da sind, aber nun welche gebraucht werden,
- //ist der Aufruf von Update() die einfachste Moeglichkeit
- if ( !pStatLst && pSortLst )
- {
- for ( size_t i = 0, n = pSortLst->size(); i < n && !pStatLst; ++i )
- {
- if ( (*pSortLst)[ i ]
- & ( FSYS_SORT_CREATED | FSYS_SORT_MODIFYED | FSYS_SORT_SIZE
- | FSYS_SORT_ACCESSED | FSYS_SORT_KIND
- )
- ) {
- Update();
- return FSYS_ERR_OK;
- }
- }
- }
-
- if ( pLst ) { //Keine DirEntry's, kein Sort.
- DirEntryList *pOldLst = pLst; //alte Liste merken
- pLst = new DirEntryList(); //neue Liste (zu Sortieren)
-
- FileStatList *pOldStatLst = NULL; //alte StatListe merken
- if ( pStatLst ) {
- pOldStatLst = pStatLst;
- pStatLst = new FileStatList(); //neue StatListe (zu Sortieren)
- }
-
- for ( size_t i = 0, n = pOldLst->size(); i < n; ++i )
- {
- //Sortiertes Einfuegen der Elemente aus den gemerkten Listen
- //in die 'richtigen' Listen
- if ( pOldStatLst )
- ImpSortedInsert( (*pOldLst)[ i ], (*pOldStatLst)[ i ] );
- else
- ImpSortedInsert( (*pOldLst)[ i ], NULL );
- }
-
- delete pOldLst;
- if ( pOldStatLst )
- delete pOldStatLst;
- }
- return FSYS_ERR_OK;
-}
-
-/*************************************************************************
-|*
|* Dir::operator[]()
|*
*************************************************************************/
diff --git a/tools/source/generic/b3dtrans.cxx b/tools/source/generic/b3dtrans.cxx
index 7a086f5a6166..de642ed941b2 100644
--- a/tools/source/generic/b3dtrans.cxx
+++ b/tools/source/generic/b3dtrans.cxx
@@ -433,20 +433,6 @@ void B3dTransformationSet::PostSetViewport()
{
}
-const basegfx::B3DVector& B3dTransformationSet::GetScale()
-{
- if(!mbProjectionValid)
- CalcViewport();
- return maScale;
-}
-
-const basegfx::B3DVector& B3dTransformationSet::GetTranslate()
-{
- if(!mbProjectionValid)
- CalcViewport();
- return maTranslate;
-}
-
/*************************************************************************
|*
|* Direkter Zugriff auf verschiedene Transformationen
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx
index 2075bf49e300..7df9dd8b2c52 100644
--- a/tools/source/generic/config.cxx
+++ b/tools/source/generic/config.cxx
@@ -726,7 +726,7 @@ sal_Bool Config::ImplUpdateConfig() const
return sal_False;
}
-// -----------------------------------------------------------------------
+// =======================================================================
ImplGroupData* Config::ImplGetGroup() const
{
@@ -769,23 +769,6 @@ ImplGroupData* Config::ImplGetGroup() const
// =======================================================================
-Config::Config()
-{
- // Daten initialisieren und einlesen
- maFileName = ImplMakeConfigName( NULL, NULL );
- mpData = ImplGetConfigData( maFileName );
- mpActGroup = NULL;
- mnDataUpdateId = 0;
- mnLockCount = 1;
- mbPersistence = sal_True;
-
-#ifdef DBG_UTIL
- OSL_TRACE( "Config::Config()" );
-#endif
-}
-
-// -----------------------------------------------------------------------
-
Config::Config( const XubString& rFileName )
{
// Daten initialisieren und einlesen
@@ -1258,55 +1241,10 @@ ByteString Config::ReadKey( sal_uInt16 nKey ) const
return getEmptyByteString();
}
-// -----------------------------------------------------------------------
-
-void Config::EnterLock()
-{
- // Config-Daten evt. updaten
- if ( !mnLockCount )
- ImplUpdateConfig();
-
- mnLockCount++;
-}
-
-// -----------------------------------------------------------------------
-
-void Config::LeaveLock()
-{
- DBG_ASSERT( mnLockCount, "Config::LeaveLook() without Config::EnterLook()" );
- mnLockCount--;
-
- if ( (mnLockCount == 0) && mpData->mbModified && mbPersistence )
- ImplWriteConfig( mpData );
-}
-
-// -----------------------------------------------------------------------
-
-sal_Bool Config::Update()
-{
- return ImplUpdateConfig();
-}
-
-// -----------------------------------------------------------------------
-
void Config::Flush()
{
if ( mpData->mbModified && mbPersistence )
ImplWriteConfig( mpData );
}
-// -----------------------------------------------------------------------
-
-void Config::SetLineEnd( LineEnd eLineEnd )
-{
- mpData->meLineEnd = eLineEnd;
-}
-
-// -----------------------------------------------------------------------
-
-LineEnd Config::GetLineEnd() const
-{
- return mpData->meLineEnd;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */