From 4b6a319dd5cff28fcf9d075cadbfdb4cc247c937 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Sun, 4 Mar 2007 19:06:59 +0000 Subject: return plain rect for union in all situations where a plain rect is given (bzr r2542) --- src/libnr/nr-rect.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/libnr/nr-rect.cpp') diff --git a/src/libnr/nr-rect.cpp b/src/libnr/nr-rect.cpp index c681783c7..76d7fff8d 100644 --- a/src/libnr/nr-rect.cpp +++ b/src/libnr/nr-rect.cpp @@ -276,16 +276,6 @@ Maybe Rect::intersection(Maybe const &a, Maybe const &b) { } } -Maybe Rect::union_bounds(Maybe const &a, Maybe const &b) { - if (a) { - return b; - } else if (b) { - return a; - } else { - return union_bounds(*a, *b); - } -} - /** returns the smallest rectangle containing both rectangles */ Rect Rect::union_bounds(Rect const &a, Rect const &b) { Rect r; -- cgit v1.2.3