Remove unneeded headers identified by IWYU (#2007)

This commit is contained in:
Andrew Gaul 2022-07-28 23:38:38 +09:00 committed by GitHub
parent 3928a7e359
commit 01a92476e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 24 additions and 44 deletions

View File

@ -20,13 +20,16 @@
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <cstring>
#include <sstream> #include <sstream>
#include <fstream> #include <fstream>
#include <strings.h>
#include <vector>
#include "common.h"
#include "s3fs.h" #include "s3fs.h"
#include "addhead.h" #include "addhead.h"
#include "curl_util.h" #include "curl_util.h"
#include "s3fs_logger.h"
//------------------------------------------------------------------- //-------------------------------------------------------------------
// Symbols // Symbols

View File

@ -18,13 +18,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <cerrno> #include <cerrno>
#include "common.h"
#include "s3fs.h"
#include "autolock.h" #include "autolock.h"
#include "s3fs_logger.h"
//------------------------------------------------------------------- //-------------------------------------------------------------------
// Class AutoLock // Class AutoLock

View File

@ -18,10 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <climits>
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string> #include <string>
#include "common.h" #include "common.h"

View File

@ -21,6 +21,7 @@
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <ctime> #include <ctime>
#include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>

View File

@ -21,17 +21,14 @@
#ifndef S3FS_CURL_H_ #ifndef S3FS_CURL_H_
#define S3FS_CURL_H_ #define S3FS_CURL_H_
#include <cassert>
#include <curl/curl.h> #include <curl/curl.h>
#include <list> #include <list>
#include <map> #include <map>
#include <strings.h>
#include <vector> #include <vector>
#include "common.h" #include "common.h"
#include "curl_handlerpool.h" #include "curl_handlerpool.h"
#include "bodydata.h" #include "bodydata.h"
#include "psemaphore.h"
#include "metaheader.h" #include "metaheader.h"
#include "fdcache_page.h" #include "fdcache_page.h"
#include "s3fs_cred.h" #include "s3fs_cred.h"
@ -80,6 +77,7 @@ typedef std::map<CURL*, progress_t> curlprogress_t;
// class S3fsCurl // class S3fsCurl
//---------------------------------------------- //----------------------------------------------
class S3fsCurl; class S3fsCurl;
class Semaphore;
// Prototype function for lazy setup options for curl handle // Prototype function for lazy setup options for curl handle
typedef bool (*s3fscurl_lazy_setup)(S3fsCurl* s3fscurl); typedef bool (*s3fscurl_lazy_setup)(S3fsCurl* s3fscurl);

View File

@ -19,7 +19,6 @@
*/ */
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include "common.h" #include "common.h"
#include "s3fs.h" #include "s3fs.h"

View File

@ -27,6 +27,7 @@
#include "curl_multi.h" #include "curl_multi.h"
#include "curl.h" #include "curl.h"
#include "autolock.h" #include "autolock.h"
#include "psemaphore.h"
//------------------------------------------------------------------- //-------------------------------------------------------------------
// Class S3fsMultiCurl // Class S3fsMultiCurl

View File

@ -19,7 +19,6 @@
*/ */
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include "common.h" #include "common.h"
#include "s3fs.h" #include "s3fs.h"

View File

@ -20,11 +20,8 @@
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <climits>
#include "common.h" #include "common.h"
#include "s3fs.h" #include "s3fs.h"

View File

@ -19,7 +19,6 @@
*/ */
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include <cerrno> #include <cerrno>
#include <unistd.h> #include <unistd.h>
#include <sstream> #include <sstream>

View File

@ -18,7 +18,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <algorithm> #include <algorithm>

View File

@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <cstdio>
#include <cstdlib>
#include <cerrno> #include <cerrno>
#include <unistd.h> #include <unistd.h>
#include <sys/file.h> #include <sys/file.h>

View File

@ -21,6 +21,8 @@
#ifndef S3FS_FDCACHE_STAT_H_ #ifndef S3FS_FDCACHE_STAT_H_
#define S3FS_FDCACHE_STAT_H_ #define S3FS_FDCACHE_STAT_H_
#include <string>
//------------------------------------------------ //------------------------------------------------
// CacheFileStat // CacheFileStat
//------------------------------------------------ //------------------------------------------------

View File

@ -18,9 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <algorithm>
#include "common.h" #include "common.h"
#include "s3fs.h" #include "s3fs.h"

View File

@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <cstdio>
#include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -23,7 +23,6 @@
#include <string> #include <string>
#include <map> #include <map>
#include <list>
//------------------------------------------------------------------- //-------------------------------------------------------------------
// headers_t // headers_t

View File

@ -20,14 +20,13 @@
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <dirent.h> #include <dirent.h>
#include <pwd.h> #include <pwd.h>
#include <sys/types.h> #include <sys/types.h>
#include <getopt.h> #include <getopt.h>
#include <fstream>
#include "common.h" #include "common.h"
#include "s3fs.h" #include "s3fs.h"
#include "metaheader.h" #include "metaheader.h"

View File

@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <pwd.h> #include <pwd.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -19,7 +19,6 @@
*/ */
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include <string> #include <string>

View File

@ -23,6 +23,7 @@
#include <cstdarg> #include <cstdarg>
#include <cstdio> #include <cstdio>
#include <string>
#include <syslog.h> #include <syslog.h>
#include <sys/time.h> #include <sys/time.h>

View File

@ -20,11 +20,13 @@
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <libxml/xpathInternals.h>
#include "common.h" #include "common.h"
#include "s3fs.h" #include "s3fs.h"
#include "s3fs_xml.h" #include "s3fs_xml.h"
#include "s3fs_util.h" #include "s3fs_util.h"
#include "s3objlist.h"
#include "autolock.h" #include "autolock.h"
//------------------------------------------------------------------- //-------------------------------------------------------------------

View File

@ -22,14 +22,13 @@
#define S3FS_S3FS_XML_H_ #define S3FS_S3FS_XML_H_
#include <libxml/xpath.h> #include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/tree.h>
#include <string> #include <string>
#include "s3objlist.h"
#include "mpu_util.h" #include "mpu_util.h"
class S3ObjList;
//------------------------------------------------------------------- //-------------------------------------------------------------------
// Functions // Functions
//------------------------------------------------------------------- //-------------------------------------------------------------------

View File

@ -19,10 +19,8 @@
*/ */
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstring>
#include "common.h"
#include "s3fs.h"
#include "s3objlist.h" #include "s3objlist.h"
//------------------------------------------------------------------- //-------------------------------------------------------------------

View File

@ -21,6 +21,10 @@
#ifndef S3FS_S3OBJLIST_H_ #ifndef S3FS_S3OBJLIST_H_
#define S3FS_S3OBJLIST_H_ #define S3FS_S3OBJLIST_H_
#include <list>
#include <map>
#include <string>
//------------------------------------------------------------------- //-------------------------------------------------------------------
// Structure / Typedef // Structure / Typedef
//------------------------------------------------------------------- //-------------------------------------------------------------------

View File

@ -19,7 +19,6 @@
*/ */
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include <csignal> #include <csignal>
#include <pthread.h> #include <pthread.h>

View File

@ -21,7 +21,7 @@
#ifndef S3FS_SIGHANDLERS_H_ #ifndef S3FS_SIGHANDLERS_H_
#define S3FS_SIGHANDLERS_H_ #define S3FS_SIGHANDLERS_H_
#include "psemaphore.h" class Semaphore;
//---------------------------------------------- //----------------------------------------------
// class S3fsSignals // class S3fsSignals

View File

@ -25,7 +25,6 @@
#include <climits> #include <climits>
#include <iomanip> #include <iomanip>
#include <stdexcept>
#include <sstream> #include <sstream>
#include "common.h" #include "common.h"

View File

@ -18,10 +18,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <limits>
#include <stdint.h>
#include <string>
#include "fdcache.h" #include "fdcache.h"
#include "test_util.h" #include "test_util.h"

View File

@ -21,9 +21,7 @@
#include <cstdlib> #include <cstdlib>
#include <limits> #include <limits>
#include <stdint.h> #include <stdint.h>
#include <strings.h>
#include <string> #include <string>
#include <map>
#include "common.h" #include "common.h"
#include "s3fs.h" #include "s3fs.h"

View File

@ -20,7 +20,6 @@
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <algorithm>
#include <errno.h> #include <errno.h>
#include "common.h" #include "common.h"