]> sourceware.org Git - libabigail.git/commitdiff
Remove useless functions from the comparison engine
authorDodji Seketeli <dodji@redhat.com>
Sat, 1 Nov 2014 10:31:11 +0000 (11:31 +0100)
committerDodji Seketeli <dodji@redhat.com>
Sat, 1 Nov 2014 11:15:14 +0000 (12:15 +0100)
* include/abg-comparison.h (read_type_suppression): Remove this
function declaration.
* src/abg-comparison.cc (read_type_suppressions): Remove this
static function definition.
(read_function_suppressions): Remove this static function
declaration.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
include/abg-comparison.h
src/abg-comparison.cc

index a22913263b2e28be03964416fe5377a22824f88b..eb1a69d7ad992170ea26989b8ea1ce15ee650a28 100644 (file)
@@ -455,10 +455,6 @@ public:
   suppresses_diff(const diff* diff) const;
 }; // end type_suppression
 
-void
-read_type_suppressions(std::istream& input,
-                      type_suppressions_type& suppressions);
-
 class function_suppression;
 
 /// Convenience typedef for a shared pointer to function_suppression.
@@ -604,9 +600,6 @@ public:
   set_parameter_type_name_regex_str(const string&);
 };// end class function_suppression::parameter_spec
 
-void
-read_function_suppressions(std::istream& input,
-                          function_suppressions_type& suppressions);
 
 /// The context of the diff.  This type holds various bits of
 /// information that is going to be used throughout the diffing of two
index c90255d75a6322c12a9f61f401bc6436b4a02a06..400a27eb13d1915e0f4360329c2919138b8794f5 100644 (file)
@@ -625,39 +625,6 @@ read_type_suppression(const ini::config::section& section)
   return suppr;
 }
 
-/// Read a vector of type suppression specifications from the sections
-/// of an ini::config.
-///
-/// @param config the config to read from.
-///
-/// @param suppressions out parameter.  The vector of type
-/// suppressions to append the newly read type suppressions to.
-static void
-read_type_suppressions(const ini::config& config,
-                      type_suppressions_type& suppressions)
-{
-  for (ini::config::sections_type::const_iterator i =
-        config.get_sections().begin();
-       i != config.get_sections().end();
-       ++i)
-    if (type_suppression_sptr s = read_type_suppression(**i))
-      suppressions.push_back(s);
-}
-
-/// Read type suppressions specifications from an input stream.
-///
-/// @param input the input stream to read from.
-///
-/// @param suppressions the vector of type suppressions to append the
-/// newly read suppressions to.
-void
-read_type_suppressions(std::istream& input,
-                     type_suppressions_type& suppressions)
-{
-  if (ini::config_sptr config = ini::read_config(input))
-    read_type_suppressions(*config, suppressions);
-}
-
 // <function_suppression stuff>
 class function_suppression::parameter_spec::priv
 {
This page took 0.050879 seconds and 5 git commands to generate.