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

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


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

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

----------------------------------------------------------------------
 3rdparty/libprocess/src/fatal.cpp | 40 --------------------------------
 3rdparty/libprocess/src/fatal.hpp | 42 ----------------------------------
 2 files changed, 82 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/892eeafe/3rdparty/libprocess/src/fatal.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/fatal.cpp 
b/3rdparty/libprocess/src/fatal.cpp
deleted file mode 100644
index 76d5ee4..0000000
--- a/3rdparty/libprocess/src/fatal.cpp
+++ /dev/null
@@ -1,40 +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
-*/
-
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-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);
-}
-
-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);
-}

http://git-wip-us.apache.org/repos/asf/mesos/blob/892eeafe/3rdparty/libprocess/src/fatal.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/fatal.hpp 
b/3rdparty/libprocess/src/fatal.hpp
deleted file mode 100644
index 87a55dc..0000000
--- a/3rdparty/libprocess/src/fatal.hpp
+++ /dev/null
@@ -1,42 +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
-*/
-
-/*
- * Basic perror + exit routines.
- *
- * Contributed by Benjamin Hindman <[email protected]>, 2008.
- */
-
-#ifndef __FATAL_HPP__
-#define __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)
-void __fatal(const char *file, int line, const char *fmt, ...);
-
-/*
- * Like the non-debug version except includes the file name and line
- * number in the output.
- */
-#define fatalerror(fmt...) __fatalerror(__FILE__, __LINE__, fmt)
-void __fatalerror(const char *file, int line, const char *fmt, ...);
-
-#endif // __FATAL_HPP__

Reply via email to