summaryrefslogtreecommitdiff
path: root/vcl/source/control/field2.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-07-13 13:03:31 +0300
committerTor Lillqvist <tml@collabora.com>2015-07-13 13:04:09 +0300
commit83b072657ef8fb30f369cd4fc9db36d76de4cdd6 (patch)
tree802bdfbdbb4e874bee199ab0b35f041784c0f315 /vcl/source/control/field2.cxx
parent3131205c05a3fde4ef1e3322cc48ca23c443f6d3 (diff)
Bin two unused fields
Change-Id: If06753320d34e0e677c9456ddb47bfd3636e8a66
Diffstat (limited to 'vcl/source/control/field2.cxx')
-rw-r--r--vcl/source/control/field2.cxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index 6f093e66912f..7efb8e69665c 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -1117,14 +1117,8 @@ bool DateFormatter::ImplDateReformat( const OUString& rStr, OUString& rOutStr, c
if ( GetErrorHdl().IsSet() && (aDate != aTempDate) )
{
- maCorrectedDate = aTempDate;
if( !GetErrorHdl().Call( this ) )
- {
- maCorrectedDate = Date( Date::SYSTEM );
return false;
- }
- else
- maCorrectedDate = Date( Date::SYSTEM );
}
rOutStr = ImplGetDateAsText( aTempDate, rSettings );
@@ -1418,7 +1412,6 @@ DateFormatter::DateFormatter() :
maLastDate( 0 ),
maMin( 1, 1, 1900 ),
maMax( 31, 12, 2200 ),
- maCorrectedDate( Date::SYSTEM ),
mbEnforceValidValue( true )
{
ImplInit();
@@ -2169,14 +2162,8 @@ bool TimeFormatter::ImplTimeReformat( const OUString& rStr, OUString& rOutStr )
if ( GetErrorHdl().IsSet() && (aTime != aTempTime) )
{
- maCorrectedTime = aTempTime;
if ( !GetErrorHdl().Call( this ) )
- {
- maCorrectedTime = tools::Time( tools::Time::SYSTEM );
return false;
- }
- else
- maCorrectedTime = tools::Time( tools::Time::SYSTEM );
}
bool bSecond = false;
@@ -2311,7 +2298,6 @@ TimeFormatter::TimeFormatter() :
maLastTime( 0, 0 ),
maMin( 0, 0 ),
maMax( 23, 59, 59, 999999999 ),
- maCorrectedTime( tools::Time::SYSTEM ),
mbEnforceValidValue( true ),
maFieldTime( 0, 0 )
{