summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-04-04 10:11:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-04-05 13:57:22 +0100
commit9c2dee67b56085ab8535a90810bf885fe0afd30c (patch)
tree368ba389af7bee6c1d8611de612e1d20f206119d
parent83b42cdccb797f1faf427b0beabc3806c5849592 (diff)
drop methods only used in svdem
-rw-r--r--svtools/inc/svtools/calendar.hxx1
-rw-r--r--svtools/source/control/calendar.cxx13
-rw-r--r--svtools/workben/svdem.cxx16
3 files changed, 0 insertions, 30 deletions
diff --git a/svtools/inc/svtools/calendar.hxx b/svtools/inc/svtools/calendar.hxx
index c9df5a175adf..17dd52bb9c2a 100644
--- a/svtools/inc/svtools/calendar.hxx
+++ b/svtools/inc/svtools/calendar.hxx
@@ -300,7 +300,6 @@ public:
void SetNoSelection();
sal_Bool IsDateSelected( const Date& rDate ) const;
Date GetFirstSelectedDate() const;
- Date GetLastSelectedDate() const;
void EnableCallEverySelect( sal_Bool bEvery = sal_True ) { mbAllSel = bEvery; }
sal_Bool IsCallEverySelectEnabled() const { return mbAllSel; }
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index 285e0d52f72f..9732c7647011 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -1911,19 +1911,6 @@ Date Calendar::GetFirstSelectedDate() const
// -----------------------------------------------------------------------
-Date Calendar::GetLastSelectedDate() const
-{
- if ( !mpSelectTable->empty() )
- return Date( *mpSelectTable->rbegin() );
- else
- {
- Date aDate( 0, 0, 0 );
- return aDate;
- }
-}
-
-// -----------------------------------------------------------------------
-
void Calendar::SetCurDate( const Date& rNewDate )
{
if ( !rNewDate.IsValidAndGregorian() )
diff --git a/svtools/workben/svdem.cxx b/svtools/workben/svdem.cxx
index 7aede1c44da2..be6ce3d6d382 100644
--- a/svtools/workben/svdem.cxx
+++ b/svtools/workben/svdem.cxx
@@ -218,7 +218,6 @@ public:
DECL_LINK( Test, PushButton* );
DECL_LINK( SelectHdl, Window* );
- DECL_LINK( CalSelectHdl, CalendarField* );
void ContextMenu( const Point& rPos );
void Command( const CommandEvent& rCEvt );
@@ -819,8 +818,6 @@ MyWin::MyWin( Window* pParent, WinBits aWinStyle ) :
{
aCalendarField.EnableEmptyFieldValue( sal_True );
aCalendarField.SetCalendarStyle( aCalendarField.GetCalendarStyle() | WB_RANGESELECT );
- aCalendarField.SetSelectHdl( LINK( this, MyWin, CalSelectHdl ) );
-// aCalendarField.SetDate( Date() );
aCalendarField.SetEmptyDate();
aCalendarField.EnableToday();
aCalendarField.EnableNone();
@@ -1001,19 +998,6 @@ IMPL_LINK( MyWin, SelectHdl, Window*, pCtrl )
// -----------------------------------------------------------------------
-IMPL_LINK( MyWin, CalSelectHdl, CalendarField*, pCtrl )
-{
- if ( pCtrl == &aCalendarField )
- {
- Calendar* l_pCalendar = pCtrl->GetCalendar();
- aCalendarField2.SetDate( l_pCalendar->GetLastSelectDate() );
- }
-
- return 0;
-}
-
-// -----------------------------------------------------------------------
-
void MyWin::ContextMenu( const Point& rPos )
{
FontList aList( this );