Remove unused local set<string> variables
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 Apr 2018 14:22:57 +0000 (15:22 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 16 Apr 2018 11:55:16 +0000 (13:55 +0200)
* src/abg-tools-utils.cc (get_dsos_provided_by_rpm): Remove unsed
set<string> variable.
* tools/abipkgdiff.cc (maybe_create_public_dso_sonames_set):
Likewise.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-tools-utils.cc
tools/abipkgdiff.cc

index 60bb773..38c4940 100644 (file)
@@ -859,7 +859,6 @@ get_dsos_provided_by_rpm(const string& rpm_path, set<string>& provided_dsos)
                                      query_output))
     return false;
 
-  set<string> dsos;
   for (vector<string>::const_iterator line = query_output.begin();
        line != query_output.end();
        ++line)
index 0466c45..41e6430 100644 (file)
@@ -1541,10 +1541,7 @@ maybe_create_public_dso_sonames_set(package& pkg, const options &opts)
     return false;
 
   if (pkg.type() == abigail::tools_utils::FILE_TYPE_RPM)
-    {
-      set<string> public_dsos;
-      return get_dsos_provided_by_rpm(pkg.path(), pkg.public_dso_sonames());
-    }
+    return get_dsos_provided_by_rpm(pkg.path(), pkg.public_dso_sonames());
 
   // We don't support this yet for non-RPM packages.
   return false;