Dead code elimination.
authorPauli <paul.dale@oracle.com>
Tue, 22 Aug 2017 00:36:26 +0000 (10:36 +1000)
committerPauli <paul.dale@oracle.com>
Tue, 22 Aug 2017 00:46:19 +0000 (10:46 +1000)
Remove the exit_main function which is never used.
Remove the exit_options array which is also unreferenced.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4213)

apps/openssl.c

index 8a67328caceaf7405273bdb191b4a86e7179307d..184c401073c195409d1922417c8c613411a0aba0 100644 (file)
@@ -267,10 +267,6 @@ int main(int argc, char *argv[])
     EXIT(ret);
 }
 
-const OPTIONS exit_options[] = {
-    {NULL}
-};
-
 static void list_cipher_fn(const EVP_CIPHER *c,
                            const char *from, const char *to, void *arg)
 {
@@ -508,11 +504,6 @@ int help_main(int argc, char **argv)
     return 0;
 }
 
-int exit_main(int argc, char **argv)
-{
-    return EXIT_THE_PROGRAM;
-}
-
 static void list_type(FUNC_TYPE ft, int one)
 {
     FUNCTION *fp;