[metacity] util: remove meta_exit



commit 6f84aa944efef6d7e6e55fda431219d781ccee03
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Mar 10 14:29:30 2017 +0200

    util: remove meta_exit

 src/core/main.c    |    4 +++-
 src/core/util.c    |    6 ------
 src/include/main.h |    3 ---
 3 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/core/main.c b/src/core/main.c
index cb9b640..add1486 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -481,7 +481,9 @@ main (int argc, char **argv)
     meta_prefs_set_force_fullscreen (FALSE);
 
   if (!meta_display_open ())
-    meta_exit (META_EXIT_ERROR);
+    {
+      exit (EXIT_FAILURE);
+    }
 
   g_main_loop_run (meta_main_loop);
 
diff --git a/src/core/util.c b/src/core/util.c
index c1cbcb4..59c20e5 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -298,12 +298,6 @@ meta_pop_no_msg_prefix (void)
   --no_prefix;
 }
 
-void
-meta_exit (MetaExitCode code)
-{
-  exit (code);
-}
-
 gint
 meta_unsigned_long_equal (gconstpointer v1,
                           gconstpointer v2)
diff --git a/src/include/main.h b/src/include/main.h
index e23380e..8fdf113 100644
--- a/src/include/main.h
+++ b/src/include/main.h
@@ -30,9 +30,6 @@ typedef enum
   META_EXIT_ERROR
 } MetaExitCode;
 
-/* exit immediately */
-void meta_exit (MetaExitCode code) __attribute__((noreturn));
-
 /* g_main_loop_quit() then fall out of main() */
 void meta_quit (MetaExitCode code);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]