diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-01 08:40:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-01 11:06:26 +0200 |
commit | 612b489d3e05b24c1b6690082e8518bac033e9d2 (patch) | |
tree | 23a6c556989071385d1c64730ed72bdbae7c239c /svx/source/dialog/svxruler.cxx | |
parent | 17e14d459dea201b57be2d8e677fa776ead03291 (diff) |
loplugin:checkunusedparams
the "check for taking address of function" part was generating false+
Change-Id: Iad6203850901229b7b1b2f8938c68ec703cd343f
Reviewed-on: https://gerrit.libreoffice.org/40613
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/dialog/svxruler.cxx')
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 307c31b51863..a506345821c3 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -2572,19 +2572,6 @@ void SvxRuler::Click() } } -bool SvxRuler::CalcLimits ( long& nMax1, // minimum value to be set - long& nMax2, // minimum value to be set - bool ) -{ - /* - Default implementation of the virtual function; the application can be - overridden to implement customized limits. The values are based on the page. - */ - nMax1 = LONG_MIN; - nMax2 = LONG_MAX; - return false; -} - void SvxRuler::CalcMinMax() { /* @@ -2966,19 +2953,8 @@ void SvxRuler::CalcMinMax() // ObjectItem else { - if(mxObjectItem->HasLimits()) - { - if(CalcLimits(nMaxLeft, nMaxRight, (nIdx & 1) == 0)) - { - nMaxLeft = ConvertPosPixel(nMaxLeft); - nMaxRight = ConvertPosPixel(nMaxRight); - } - } - else - { - nMaxLeft = LONG_MIN; - nMaxRight = LONG_MAX; - } + nMaxLeft = LONG_MIN; + nMaxRight = LONG_MAX; } break; } |