From b6edf25cd8401265a7ac77aa09de2095454d3d09 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 9 Aug 2017 17:27:28 +1000 Subject: [PATCH] region: remove the resize method we're moving away from mutating operators so this is somewhat out-of-place. it's not a huge functional change though as there are enough locations where the internal representation of point/extent are assumed that we just do it through the members. --- region.cpp | 9 --------- region.hpp | 2 -- 2 files changed, 11 deletions(-) diff --git a/region.cpp b/region.cpp index 13986dcd..9138dbe0 100644 --- a/region.cpp +++ b/region.cpp @@ -250,15 +250,6 @@ util::region::intersection (region rhs) const } -//----------------------------------------------------------------------------- -template -util::region& -util::region::resize (extent _e) -{ - e = _e; - return *this; -} - //----------------------------------------------------------------------------- template util::region diff --git a/region.hpp b/region.hpp index d5048f60..81ef39cc 100644 --- a/region.hpp +++ b/region.hpp @@ -84,8 +84,6 @@ namespace util { region intersection (region) const; //--------------------------------------------------------------------- - region& resize (extent); - // Compute a region `mag` units into the region region inset (T mag) const; region inset (vector mag) const;