[PATCH] Remove redundant code from abidiff
Ben Woodard
woodard@redhat.com
Fri Jun 3 13:16:21 GMT 2022
While working on abicompat, I noticed that the following two blocks of
code are redundant. They perform the same test as in the switch
statement a few lines below.
* tools/abidiff.cc - remove redundant code.
Signed-off-by: Ben Woodard <woodard@redhat.com>
---
tools/abidiff.cc | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/tools/abidiff.cc b/tools/abidiff.cc
index 37a273ad..e0f6d5be 100644
--- a/tools/abidiff.cc
+++ b/tools/abidiff.cc
@@ -1127,20 +1127,7 @@ main(int argc, char* argv[])
abigail::tools_utils::file_type t1_type, t2_type;
t1_type = guess_file_type(opts.file1);
- if (t1_type == abigail::tools_utils::FILE_TYPE_UNKNOWN)
- {
- emit_prefix(argv[0], cerr)
- << "Unknown content type for file " << opts.file1 << "\n";
- return abigail::tools_utils::ABIDIFF_ERROR;
- }
-
t2_type = guess_file_type(opts.file2);
- if (t2_type == abigail::tools_utils::FILE_TYPE_UNKNOWN)
- {
- emit_prefix(argv[0], cerr)
- << "Unknown content type for file " << opts.file2 << "\n";
- return abigail::tools_utils::ABIDIFF_ERROR;
- }
environment_sptr env(new environment);
#ifdef WITH_DEBUG_SELF_COMPARISON
--
2.36.1
More information about the Libabigail
mailing list