summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 22:14:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-25 09:04:26 +0200
commit1b694dad643334ec1bab3f823dcd68f44a05ebe3 (patch)
treec1b6045ae9d5497e2d28642b95b2d88f9cc14d81 /svtools
parentloplugin:useuniqueptr in dbaccess (diff)
downloadcore-1b694dad643334ec1bab3f823dcd68f44a05ebe3.tar.gz
core-1b694dad643334ec1bab3f823dcd68f44a05ebe3.zip
loplugin:unusedmethods
Change-Id: Iaaf9092ec4d6189492906648b84494d087fed81f Reviewed-on: https://gerrit.libreoffice.org/41539 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/calendar.cxx49
-rw-r--r--svtools/source/control/ruler.cxx5
-rw-r--r--svtools/source/graphic/grfcache.cxx24
-rw-r--r--svtools/source/graphic/grfcache.hxx2
4 files changed, 0 insertions, 80 deletions
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index 828e3af37c0d..911f464eac3d 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -48,8 +48,6 @@
#define SPIN_OFFX 4
#define SPIN_OFFY TITLE_BORDERY
-#define WEEKNUMBER_HEIGHT 85
-
#define CALENDAR_HITTEST_DAY ((sal_uInt16)0x0001)
#define CALENDAR_HITTEST_MONTHTITLE ((sal_uInt16)0x0004)
#define CALENDAR_HITTEST_PREV ((sal_uInt16)0x0008)
@@ -69,11 +67,6 @@ static void ImplCalendarSelectDate( IntDateSet* pTable, const Date& rDate, bool
-inline void ImplCalendarClearSelectDate( IntDateSet* pTable )
-{
- pTable->clear();
-}
-
void Calendar::ImplInit( WinBits nWinStyle )
{
mpSelectTable = new IntDateSet;
@@ -219,16 +212,6 @@ DayOfWeek Calendar::ImplGetWeekStart() const
return eDay;
}
-void Calendar::ImplGetWeekFont( vcl::Font& rFont )
-{
- // weeknumber is displayed in WEEKNUMBER_HEIGHT%-Fontheight
- Size aFontSize = rFont.GetFontSize();
- aFontSize.Height() *= WEEKNUMBER_HEIGHT;
- aFontSize.Height() /= 100;
- rFont.SetFontSize( aFontSize );
- rFont.SetWeight( WEIGHT_NORMAL );
-}
-
void Calendar::ImplFormat()
{
if ( !mbFormat )
@@ -1365,38 +1348,6 @@ void Calendar::Select()
maSelectHdl.Call( this );
}
-void Calendar::SelectDate( const Date& rDate, bool bSelect )
-{
- if ( !rDate.IsValidAndGregorian() )
- return;
-
- std::unique_ptr<IntDateSet> pOldSel;
-
- pOldSel.reset(new IntDateSet( *mpSelectTable ));
-
- ImplCalendarSelectDate( mpSelectTable, rDate, bSelect );
-
- if ( pOldSel )
- ImplUpdateSelection( pOldSel.get() );
-}
-
-void Calendar::SetNoSelection()
-{
- std::unique_ptr<IntDateSet> pOldSel;
-
- pOldSel.reset(new IntDateSet( *mpSelectTable ));
-
- ImplCalendarClearSelectDate( mpSelectTable );
-
- if ( pOldSel )
- ImplUpdateSelection( pOldSel.get() );
-}
-
-bool Calendar::IsDateSelected( const Date& rDate ) const
-{
- return mpSelectTable->find( rDate.GetDate() ) != mpSelectTable->end();
-}
-
Date Calendar::GetFirstSelectedDate() const
{
if ( !mpSelectTable->empty() )
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index f4deadc572e1..8392ba2fd678 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2678,11 +2678,6 @@ void Ruler::SetTextRTL(bool bRTL)
}
-long Ruler::GetPageWidth() const
-{
- return mpData->nPageWidth;
-}
-
long Ruler::GetPageOffset() const
{
return mpData->nPageOff;
diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx
index 14abb1d6e428..c5995a141b22 100644
--- a/svtools/source/graphic/grfcache.cxx
+++ b/svtools/source/graphic/grfcache.cxx
@@ -1017,30 +1017,6 @@ void GraphicCache::SetMaxDisplayCacheSize( sal_uLong nNewCacheSize )
ImplFreeDisplayCacheSpace( GetUsedDisplayCacheSize() - GetMaxDisplayCacheSize() );
}
-void GraphicCache::SetMaxObjDisplayCacheSize( sal_uLong nNewMaxObjSize )
-{
- const bool bDestroy = nNewMaxObjSize < mnMaxObjDisplaySize;
-
- mnMaxObjDisplaySize = std::min( nNewMaxObjSize, mnMaxDisplaySize );
-
- if( bDestroy )
- {
- GraphicDisplayCacheEntryList::iterator it = maDisplayCache.begin();
- while( it != maDisplayCache.end() )
- {
- GraphicDisplayCacheEntry* pCacheObj = *it;
- if( pCacheObj->GetCacheSize() > mnMaxObjDisplaySize )
- {
- mnUsedDisplaySize -= pCacheObj->GetCacheSize();
- it = maDisplayCache.erase( it );
- delete pCacheObj;
- }
- else
- ++it;
- }
- }
-}
-
void GraphicCache::SetCacheTimeout( sal_uLong nTimeoutSeconds )
{
if( mnReleaseTimeoutSeconds != nTimeoutSeconds )
diff --git a/svtools/source/graphic/grfcache.hxx b/svtools/source/graphic/grfcache.hxx
index ac6c1a8dbe49..48c2624521bd 100644
--- a/svtools/source/graphic/grfcache.hxx
+++ b/svtools/source/graphic/grfcache.hxx
@@ -80,8 +80,6 @@ public:
void SetMaxDisplayCacheSize( sal_uLong nNewCacheSize );
sal_uLong GetMaxDisplayCacheSize() const { return mnMaxDisplaySize; };
- void SetMaxObjDisplayCacheSize( sal_uLong nNewMaxObjSize );
-
sal_uLong GetMaxObjDisplayCacheSize() const { return mnMaxObjDisplaySize; }
sal_uLong GetUsedDisplayCacheSize() const { return mnUsedDisplaySize; }