mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-22 08:48:55 +00:00
Remove unnecessary copy constructors and operator= (#2468)
This commit is contained in:
parent
ebae5a302f
commit
683452a9be
@ -104,6 +104,10 @@ class StatCache
|
||||
private:
|
||||
StatCache();
|
||||
~StatCache();
|
||||
StatCache(const StatCache&) = delete;
|
||||
StatCache(StatCache&&) = delete;
|
||||
StatCache& operator=(const StatCache&) = delete;
|
||||
StatCache& operator=(StatCache&&) = delete;
|
||||
|
||||
void Clear();
|
||||
bool GetStat(const std::string& key, struct stat* pst, headers_t* meta, bool overcheck, const char* petag, bool* pisforce);
|
||||
|
@ -65,6 +65,10 @@ class S3fsMultiCurl
|
||||
public:
|
||||
explicit S3fsMultiCurl(int maxParallelism, bool not_abort = false);
|
||||
~S3fsMultiCurl();
|
||||
S3fsMultiCurl(const S3fsMultiCurl&) = delete;
|
||||
S3fsMultiCurl(S3fsMultiCurl&&) = delete;
|
||||
S3fsMultiCurl& operator=(const S3fsMultiCurl&) = delete;
|
||||
S3fsMultiCurl& operator=(S3fsMultiCurl&&) = delete;
|
||||
|
||||
int GetMaxParallelism() const { return maxParallelism; }
|
||||
|
||||
|
@ -58,6 +58,10 @@ class FdManager
|
||||
public:
|
||||
FdManager();
|
||||
~FdManager();
|
||||
FdManager(const FdManager&) = delete;
|
||||
FdManager(FdManager&&) = delete;
|
||||
FdManager& operator=(const FdManager&) = delete;
|
||||
FdManager& operator=(FdManager&&) = delete;
|
||||
|
||||
// Reference singleton
|
||||
static FdManager* get() { return &singleton; }
|
||||
|
@ -99,7 +99,9 @@ class PageList
|
||||
|
||||
explicit PageList(off_t size = 0, bool is_loaded = false, bool is_modified = false, bool shrinked = false);
|
||||
PageList(const PageList&) = delete;
|
||||
PageList(PageList&&) = delete;
|
||||
PageList& operator=(const PageList&) = delete;
|
||||
PageList& operator=(PageList&&) = delete;
|
||||
~PageList();
|
||||
|
||||
bool Init(off_t size, bool is_loaded, bool is_modified);
|
||||
|
@ -46,6 +46,10 @@ class CacheFileStat
|
||||
|
||||
explicit CacheFileStat(const char* tpath = nullptr);
|
||||
~CacheFileStat();
|
||||
CacheFileStat(const CacheFileStat&) = delete;
|
||||
CacheFileStat(CacheFileStat&&) = delete;
|
||||
CacheFileStat& operator=(const CacheFileStat&) = delete;
|
||||
CacheFileStat& operator=(CacheFileStat&&) = delete;
|
||||
|
||||
bool Open();
|
||||
bool ReadOnlyOpen();
|
||||
|
Loading…
Reference in New Issue
Block a user