From 51595f5340d141e5f1e7b2a4d858abfa9b12c43e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 23 Apr 2019 13:51:07 -0700 Subject: [PATCH] Remove some unnecessary #ifdef directives MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit These directives are in files that are compiled only if the symbols are defined. * src/gfilenotify.c: Remove unnecessary ‘#ifdef HAVE_GFILENOTIFY’. * src/inotify.c: Remove unnecessary ‘#ifdef HAVE_INOTIFY’. * src/kqueue.c: Remove unnecessary ‘#ifdef HAVE_KQUEUE’. --- src/gfilenotify.c | 4 ---- src/inotify.c | 4 ---- src/kqueue.c | 3 --- 3 files changed, 11 deletions(-) diff --git a/src/gfilenotify.c b/src/gfilenotify.c index a9f33c99004..ddb19770c3c 100644 --- a/src/gfilenotify.c +++ b/src/gfilenotify.c @@ -18,7 +18,6 @@ along with GNU Emacs. If not, see . */ #include -#ifdef HAVE_GFILENOTIFY #include #include #include "lisp.h" @@ -333,7 +332,4 @@ syms_of_gfilenotify (void) staticpro (&watch_list); Fprovide (intern_c_string ("gfilenotify"), Qnil); - } - -#endif /* HAVE_GFILENOTIFY */ diff --git a/src/inotify.c b/src/inotify.c index ecbe31c1682..9a7dbb8f413 100644 --- a/src/inotify.c +++ b/src/inotify.c @@ -19,8 +19,6 @@ along with GNU Emacs. If not, see . */ #include -#ifdef HAVE_INOTIFY - #include "lisp.h" #include "coding.h" #include "process.h" @@ -550,5 +548,3 @@ syms_of_inotify (void) Fprovide (intern_c_string ("inotify"), Qnil); } - -#endif /* HAVE_INOTIFY */ diff --git a/src/kqueue.c b/src/kqueue.c index 48121bd663a..42391f84677 100644 --- a/src/kqueue.c +++ b/src/kqueue.c @@ -19,7 +19,6 @@ along with GNU Emacs. If not, see . */ #include -#ifdef HAVE_KQUEUE #include #include #include @@ -533,8 +532,6 @@ syms_of_kqueue (void) Fprovide (intern_c_string ("kqueue"), Qnil); } -#endif /* HAVE_KQUEUE */ - /* PROBLEMS * https://bugs.launchpad.net/ubuntu/+source/libkqueue/+bug/1514837 prevents tests on Ubuntu. */ -- 2.39.2