]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Drop compilation-breaking stub
authorPetr Machata <pmachata@redhat.com>
Mon, 5 Oct 2009 19:50:35 +0000 (21:50 +0200)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Aug 2010 12:55:10 +0000 (14:55 +0200)
src/dwarflint-hl.cc

index 6f11b5aa425d068e22bcfeeff86e64aad63d414e..2179e2e1b7af4b8df1e9d01515535b9300bba122 100644 (file)
@@ -303,23 +303,3 @@ check_expected_trees (hl_ctx *hlctx)
       return false;
     }
 }
-
-bool
-check_expected_trees (hl_ctx *hlctx)
-{
-  try
-    {
-      class elfutils::dwarf::compile_units const &cus = hlctx->dw.compile_units ();
-      for (elfutils::dwarf::compile_units::const_iterator it = cus.begin ();
-          it != cus.end (); ++it)
-       recursively_validate (*it, *it);
-      return true;
-    }
-  // XXX more specific class when <dwarf> has it
-  catch (std::runtime_error &exc)
-    {
-      wr_error (NULL, "Error while checking expected trees: %s.\n",
-               exc.what ());
-      return false;
-    }
-}