stout: Removed unused 'fatal' and 'fatalerror' macros.

Review: https://reviews.apache.org/r/37010


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/efc3e47d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/efc3e47d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/efc3e47d

Branch: refs/heads/master
Commit: efc3e47d7dacb672f358e8e67d7b67f80c1765f6
Parents: 892eeaf
Author: Michael Park <[email protected]>
Authored: Wed Aug 5 14:01:41 2015 +0200
Committer: Bernd Mathiske <[email protected]>
Committed: Wed Aug 5 14:01:41 2015 +0200

----------------------------------------------------------------------
 .../3rdparty/stout/include/Makefile.am          |  1 -
 .../3rdparty/stout/include/stout/fatal.hpp      | 56 --------------------
 2 files changed, 57 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/efc3e47d/3rdparty/libprocess/3rdparty/stout/include/Makefile.am
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/Makefile.am 
b/3rdparty/libprocess/3rdparty/stout/include/Makefile.am
index ce85033..8853f92 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/Makefile.am
+++ b/3rdparty/libprocess/3rdparty/stout/include/Makefile.am
@@ -23,7 +23,6 @@ nobase_include_HEADERS =              \
   stout/dynamiclibrary.hpp             \
   stout/error.hpp                      \
   stout/exit.hpp                       \
-  stout/fatal.hpp                      \
   stout/flags.hpp                      \
   stout/flags/fetch.hpp                        \
   stout/flags/flag.hpp                 \

http://git-wip-us.apache.org/repos/asf/mesos/blob/efc3e47d/3rdparty/libprocess/3rdparty/stout/include/stout/fatal.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/fatal.hpp 
b/3rdparty/libprocess/3rdparty/stout/include/stout/fatal.hpp
deleted file mode 100644
index 053ef82..0000000
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/fatal.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#ifndef __STOUT_FATAL_HPP__
-#define __STOUT_FATAL_HPP__
-
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-
-/*
- * Like the non-debug version except includes the file name and line
- * number in the output.
- */
-#define fatal(fmt...) __fatal(__FILE__, __LINE__, fmt)
-inline void __fatal(const char *file, int line, const char *fmt, ...)
-{
-  va_list args;
-  va_start(args, fmt);
-  vfprintf(stderr, fmt, args);
-  fprintf(stderr, " (%s:%u)\n", file, line);
-  fflush(stderr);
-  va_end(args);
-  exit(1);
-}
-
-
-/*
- * Like the non-debug version except includes the file name and line
- * number in the output.
- */
-#define fatalerror(fmt...) __fatalerror(__FILE__, __LINE__, fmt)
-inline void __fatalerror(const char *file, int line, const char *fmt, ...)
-{
-  va_list args;
-  va_start(args, fmt);
-  vfprintf(stderr, fmt, args);
-  fprintf(stderr, " (%s:%u): ", file, line);
-  perror(NULL);
-  fflush(stderr);
-  va_end(args);
-  exit(1);
-}
-
-#endif // __STOUT_FATAL_HPP__

Reply via email to