diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-26 12:48:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-26 12:48:43 +0200 |
commit | abd25278f0c51ccda3b717c8f56731bb6190e5a0 (patch) | |
tree | 33f50c42f6be1b055c404ec02fc60948275a5b44 /odb/parser.cxx | |
parent | af12ffe836de09ec84f666effa4df347eeb07a43 (diff) |
Remove unnecessary code
Diffstat (limited to 'odb/parser.cxx')
-rw-r--r-- | odb/parser.cxx | 18 |
1 files changed, 1 insertions, 17 deletions
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; } // |