Skip to content

Commit

Permalink
Remove unused headers found by clang-tidy (s3fs-fuse#2480)
Browse files Browse the repository at this point in the history
Found via misc-include-cleaner but this requires more work.
  • Loading branch information
gaul authored Jun 25, 2024
1 parent 1449905 commit 585f137
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#ifndef S3FS_COMMON_H_
#define S3FS_COMMON_H_

#include <string>
#include <sys/types.h>

#include "../config.h"
#include "types.h"

//-------------------------------------------------------------------
// Global variables
Expand Down
1 change: 0 additions & 1 deletion src/fdcache_pseudofd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <cstdlib>
#include <vector>

#include "s3fs_logger.h"
#include "fdcache_pseudofd.h"

//------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion src/metaheader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <ctime>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "common.h"
#include "metaheader.h"
Expand Down
1 change: 0 additions & 1 deletion src/mpu_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <cstdio>
#include <cstdlib>

#include "s3fs.h"
#include "s3fs_logger.h"
#include "mpu_util.h"
#include "curl.h"
Expand Down
2 changes: 0 additions & 2 deletions src/openssl_auth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <string>

#include "s3fs_auth.h"
#include "s3fs_logger.h"
Expand Down
1 change: 0 additions & 1 deletion src/s3fs_cred.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <unistd.h>
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dlfcn.h>
#include <fstream>
#include <sstream>
Expand Down
1 change: 1 addition & 0 deletions src/s3fs_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <memory>
#include <sstream>
#include <string>
#include <strings.h>

#include "common.h"
#include "s3fs_logger.h"
Expand Down
1 change: 0 additions & 1 deletion src/s3fs_xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <mutex>

#include "common.h"
#include "s3fs.h"
#include "s3fs_logger.h"
#include "s3fs_xml.h"
#include "s3fs_util.h"
Expand Down
1 change: 0 additions & 1 deletion src/threadpoolman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/

#include <cerrno>
#include <cstdint>
#include <cstdio>
#include <cstdlib>

Expand Down

0 comments on commit 585f137

Please sign in to comment.