summaryrefslogtreecommitdiffstats
path: root/unique_fd.h
diff options
context:
space:
mode:
Diffstat (limited to 'unique_fd.h')
-rw-r--r--unique_fd.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/unique_fd.h b/unique_fd.h
index 98a7c7b67..cc85383f8 100644
--- a/unique_fd.h
+++ b/unique_fd.h
@@ -59,15 +59,4 @@ class unique_fd {
unique_fd& operator=(const unique_fd&) = delete;
};
-// Custom deleter for unique_file to avoid fclose(NULL).
-struct safe_fclose {
- void operator()(FILE *fp) const {
- if (fp) {
- fclose(fp);
- };
- }
-};
-
-using unique_file = std::unique_ptr<FILE, safe_fclose>;
-
#endif // UNIQUE_FD_H