From 1bbfb7044b6621a702a3b7975e45b4efde47abc1 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 28 Jan 2020 10:26:31 -0800 Subject: [PATCH] Remove wopen It was unused --- src/wutil.cpp | 5 ----- src/wutil.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/src/wutil.cpp b/src/wutil.cpp index 2f709770b..a136ce0ff 100644 --- a/src/wutil.cpp +++ b/src/wutil.cpp @@ -218,11 +218,6 @@ int open_cloexec(const char *path, int flags, mode_t mode) { return fd; } -int wopen(const wcstring &pathname, int flags, mode_t mode) { - cstring tmp = wcs2string(pathname); - return open(tmp.c_str(), flags, mode); -} - int wopen_cloexec(const wcstring &pathname, int flags, mode_t mode) { cstring tmp = wcs2string(pathname); return open_cloexec(tmp, flags, mode); diff --git a/src/wutil.h b/src/wutil.h index cc892663f..7e9c7ca2c 100644 --- a/src/wutil.h +++ b/src/wutil.h @@ -25,9 +25,6 @@ FILE *wfopen(const wcstring &path, const char *mode); /// Sets CLO_EXEC on a given fd according to the value of \p should_set. int set_cloexec(int fd, bool should_set = true); -/// Wide character version of open(). -int wopen(const wcstring &pathname, int flags, mode_t mode = 0); - /// Wide character version of open() that also sets the close-on-exec flag (atomically when /// possible). int wopen_cloexec(const wcstring &pathname, int flags, mode_t mode = 0);