From fffc6b40b933f640a412233988bbb74bf6138af4 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Thu, 18 Nov 2021 12:18:25 +0200 Subject: Drop unused argument names, and (void) noise Change-Id: I75f313924db7d6a0658f9d7cc1d571767cec3144 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125364 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- basic/source/runtime/methods.cxx | 15 +++------------ basic/source/runtime/methods1.cxx | 10 ++-------- 2 files changed, 5 insertions(+), 20 deletions(-) (limited to 'basic') diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 7dfde6184b0d..7e9a1adcccd7 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -389,11 +389,8 @@ extern "C" void invalidParameterHandler( #endif -void SbRtl_CurDir(StarBASIC * pBasic, SbxArray & rPar, bool bWrite) +void SbRtl_CurDir(StarBASIC *, SbxArray & rPar, bool) { - (void)pBasic; - (void)bWrite; - // #57064 Although this function doesn't work with DirEntry, it isn't touched // by the adjustment to virtual URLs, as, using the DirEntry-functionality, // there's no possibility to detect the current one in a way that a virtual URL @@ -1651,11 +1648,8 @@ void SbRtl_UCase(StarBASIC *, SbxArray & rPar, bool) } -void SbRtl_Val(StarBASIC * pBasic, SbxArray & rPar, bool bWrite) +void SbRtl_Val(StarBASIC *, SbxArray & rPar, bool) { - (void)pBasic; - (void)bWrite; - if (rPar.Count() < 2) { StarBASIC::Error( ERRCODE_BASIC_BAD_ARGUMENT ); @@ -2920,11 +2914,8 @@ void SbRtl_Dir(StarBASIC *, SbxArray & rPar, bool) } -void SbRtl_GetAttr(StarBASIC * pBasic, SbxArray & rPar, bool bWrite) +void SbRtl_GetAttr(StarBASIC *, SbxArray & rPar, bool) { - (void)pBasic; - (void)bWrite; - if (rPar.Count() == 2) { sal_Int16 nFlags = 0; diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index a7212fc13151..117e84d73000 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -254,11 +254,8 @@ void SbRtl_CCur(StarBASIC *, SbxArray & rPar, bool) rPar.Get(0)->PutCurrency(nCur); } -void SbRtl_CDec(StarBASIC * pBasic, SbxArray & rPar, bool bWrite) +void SbRtl_CDec(StarBASIC *, SbxArray & rPar, bool) { - (void)pBasic; - (void)bWrite; - #ifdef _WIN32 SbxDecimal* pDec = nullptr; if (rPar.Count() == 2) @@ -458,11 +455,8 @@ void SbRtl_GetSystemType(StarBASIC *, SbxArray & rPar, bool) } } -void SbRtl_GetGUIType(StarBASIC * pBasic, SbxArray & rPar, bool bWrite) +void SbRtl_GetGUIType(StarBASIC *, SbxArray & rPar, bool) { - (void)pBasic; - (void)bWrite; - if (rPar.Count() != 1) { StarBASIC::Error( ERRCODE_BASIC_BAD_ARGUMENT ); -- cgit