diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-01-01 13:10:08 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-01-01 13:10:08 +0000 |
| commit | e42881fa380ee2f299dc00bfbc38356f7919b0d2 (patch) | |
| tree | 399b34395a36ebb3796054430ca5bf279a1e7b27 /src/remote.cc | |
| parent | 968e573d803df664b4280ed30e22846a9b08963c (diff) | |
Fix remaining uses of hardcoded /tmp to get the socket paths
Fixes #1097
Diffstat (limited to 'src/remote.cc')
| -rw-r--r-- | src/remote.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/remote.cc b/src/remote.cc index 946c14e4..06259b67 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -480,15 +480,6 @@ void RemoteUI::set_ui_options(const Options& options) m_socket_watcher.events() |= FdEvents::Write; } -static StringView tmpdir() -{ - StringView tmpdir = getenv("TMPDIR"); - if (not tmpdir.empty()) - return tmpdir.back() == '/' ? tmpdir.substr(0_byte, tmpdir.length()-1) - : tmpdir; - return "/tmp"; -} - static sockaddr_un session_addr(StringView session) { sockaddr_un addr; |
