Remove wchdir()

It's unused, and will soon be dangerous as the process-wide cwd will
lose meaning.
This commit is contained in:
ridiculousfish 2019-06-10 09:37:08 -07:00
parent 6637ccd3a2
commit 42138f00c6
2 changed files with 0 additions and 8 deletions

View file

@ -135,11 +135,6 @@ const wcstring wgetcwd() {
return wcstring();
}
int wchdir(const wcstring &dir) {
cstring tmp = wcs2string(dir);
return chdir(tmp.c_str());
}
FILE *wfopen(const wcstring &path, const char *mode) {
int permissions = 0, options = 0;
size_t idx = 0;

View file

@ -72,9 +72,6 @@ const char *safe_strerror(int err);
/// Wide character version of getcwd().
const wcstring wgetcwd();
/// Wide character version of chdir().
int wchdir(const wcstring &dir);
/// Wide character version of realpath function.
/// \returns the canonicalized path, or none if the path is invalid.
maybe_t<wcstring> wrealpath(const wcstring &pathname);