From ee4036a53a81ad9df2ac79fe8b00b889a4327d1f Mon Sep 17 00:00:00 2001 From: Joakim Date: Sat, 16 Sep 2017 12:56:33 +0530 Subject: [PATCH] Use the Posix TMPDIR logic, as D can be used from the command-line too on Android. --- std/file.d | 5 ----- 1 file changed, 5 deletions(-) diff --git a/std/file.d b/std/file.d index fc0f15b6f..e8e434c06 100644 --- a/std/file.d +++ b/std/file.d @@ -4353,11 +4353,6 @@ string tempDir() @trusted DWORD len = GetTempPathW(buf.length, buf.ptr); if (len) cache = buf[0 .. len].to!string; } - else version(Android) - { - // Don't check for a global temporary directory as - // Android doesn't have one. - } else version(Posix) { import std.process : environment;