From a595dcb51fd3f23343f6e11438f887f72df1ef31 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Sun, 26 Feb 2017 16:18:08 -0800 Subject: [PATCH] Kill unused include of sched.h Summary: These are the only includes of `sched.h` in Folly, and they really are unused: Reviewed By: yfeldblum Differential Revision: D4615501 fbshipit-source-id: 6a3a1aad7a91a92a322fd93d18e1284aa3f86b89 --- folly/Portability.h | 4 ---- folly/configure.ac | 2 +- folly/detail/CacheLocality.h | 1 - folly/test/CacheLocalityTest.cpp | 1 - 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/folly/Portability.h b/folly/Portability.h index 17c064ba..07426f05 100644 --- a/folly/Portability.h +++ b/folly/Portability.h @@ -24,10 +24,6 @@ #include -#if FOLLY_HAVE_SCHED_H - #include -#endif - // Unaligned loads and stores namespace folly { #if FOLLY_HAVE_UNALIGNED_ACCESS diff --git a/folly/configure.ac b/folly/configure.ac index 623bfdae..4aecd66f 100644 --- a/folly/configure.ac +++ b/folly/configure.ac @@ -160,7 +160,7 @@ AM_PATH_PYTHON # Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS([fcntl.h features.h inttypes.h limits.h sched.h stdint.h stdlib.h string.h sys/time.h unistd.h mutex.h malloc.h bits/functexcept.h bits/c++config.h]) +AC_CHECK_HEADERS([fcntl.h features.h inttypes.h limits.h stdint.h stdlib.h string.h sys/time.h unistd.h mutex.h malloc.h bits/functexcept.h bits/c++config.h]) AC_CHECK_HEADER(double-conversion/double-conversion.h, [], [AC_MSG_ERROR( [Couldn't find double-conversion.h, please download from \ diff --git a/folly/detail/CacheLocality.h b/folly/detail/CacheLocality.h index 32be3be0..965387b6 100644 --- a/folly/detail/CacheLocality.h +++ b/folly/detail/CacheLocality.h @@ -16,7 +16,6 @@ #pragma once -#include #include #include #include diff --git a/folly/test/CacheLocalityTest.cpp b/folly/test/CacheLocalityTest.cpp index 8f18ccc5..5ecd0eb1 100644 --- a/folly/test/CacheLocalityTest.cpp +++ b/folly/test/CacheLocalityTest.cpp @@ -18,7 +18,6 @@ #include -#include #include #include #include -- 2.34.1