From abd25278f0c51ccda3b717c8f56731bb6190e5a0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Jan 2012 12:48:43 +0200 Subject: Remove unnecessary code --- odb/parser.cxx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'odb') diff --git a/odb/parser.cxx b/odb/parser.cxx index 68a3b27..a9cf87e 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -181,23 +181,7 @@ operator< (tree_decl const& y) const { location_t xloc (decl ? DECL_SOURCE_LOCATION (decl) : prag->loc); location_t yloc (y.decl ? DECL_SOURCE_LOCATION (y.decl) : y.prag->loc); - - if (xloc != yloc) - return xloc < yloc; - - size_t xl (LOCATION_LINE (xloc)); - size_t yl (LOCATION_LINE (yloc)); - - if (xl != yl) - return xl < yl; - - size_t xc (LOCATION_COLUMN (xloc)); - size_t yc (LOCATION_COLUMN (yloc)); - - if (xc != yc) - return xc < yc; - - return false; + return xloc < yloc; } // -- cgit v1.1