basic/source/runtime/methods1.cxx |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

New commits:
commit 8e23c9404373c1182203e139ee052d43ae647276
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sun Dec 21 13:27:23 2025 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sun Dec 21 14:44:22 2025 +0100

    Drop a convenience function used only once
    
    Change-Id: If49b4dc658e953e86d87a76300a9517d6bb896b9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196042
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/basic/source/runtime/methods1.cxx 
b/basic/source/runtime/methods1.cxx
index f2a628b6c658..8bcc61f08581 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -1705,13 +1705,6 @@ static IntervalInfo const * getIntervalInfo( const 
OUString& rStringCode )
     return nullptr;
 }
 
-static void implGetDayMonthYear( sal_Int16& rnYear, sal_Int16& rnMonth, 
sal_Int16& rnDay, double dDate )
-{
-    rnDay   = implGetDateDay( dDate );
-    rnMonth = implGetDateMonth( dDate );
-    rnYear  = implGetDateYear( dDate );
-}
-
 /** Limits a date to valid dates within tools' class Date capabilities.
 
     @return the year number, truncated if necessary and in that case also
@@ -1765,9 +1758,10 @@ void SbRtl_DateAdd(StarBASIC *, SbxArray & rPar, bool)
         double dHoursMinutesSeconds = dDate - floor( dDate );
 
         bool bOk = true;
-        sal_Int16 nYear, nMonth, nDay;
+        sal_Int16 nDay = implGetDateDay(dDate);
+        sal_Int16 nMonth = implGetDateMonth(dDate);
+        sal_Int16 nYear = implGetDateYear(dDate);
         sal_Int16 nTargetYear16 = 0, nTargetMonth = 0;
-        implGetDayMonthYear( nYear, nMonth, nDay, dDate );
         switch( pInfo->meInterval )
         {
             case Interval::YYYY:

Reply via email to