diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-07 13:58:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-08 09:51:27 +0200 |
commit | 449d272daf5e99f039cdfdd25f020bd798fb9e1d (patch) | |
tree | fad3597606f3fbae275ff990aac45ad8f00e1c86 /vcl/source/gdi/region.cxx | |
parent | b43fde69caf456585004b3e1da5161d76eadf057 (diff) |
loplugin:unusedmethods vcl
Change-Id: I98b88ca3369a2c888fd63796e39d42376d513002
Diffstat (limited to 'vcl/source/gdi/region.cxx')
-rw-r--r-- | vcl/source/gdi/region.cxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx index 943559582d4d..493a02204255 100644 --- a/vcl/source/gdi/region.cxx +++ b/vcl/source/gdi/region.cxx @@ -1383,34 +1383,6 @@ bool vcl::Region::IsInside( const Point& rPoint ) const return false; } -bool vcl::Region::IsInside( const Rectangle& rRect ) const -{ - if(IsEmpty()) - { - // no rectangle can be in empty region - return false; - } - - if(IsNull()) - { - // rectangle always inside null-region - return true; - } - - if ( rRect.IsEmpty() ) - { - // is rectangle empty? -> not inside - return false; - } - - // create region from rectangle and intersect own region - vcl::Region aRegion(rRect); - aRegion.Exclude(*this); - - // rectangle is inside if exclusion is empty - return aRegion.IsEmpty(); -} - bool vcl::Region::IsOver( const Rectangle& rRect ) const { if(IsEmpty()) |