mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
Remove wchdir()
It's unused, and will soon be dangerous as the process-wide cwd will lose meaning.
This commit is contained in:
parent
6637ccd3a2
commit
42138f00c6
2 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue