Fix deprecation warning on DMD 2.079.0.
This commit is contained in:
parent
8242fd058e
commit
43ef41d4fa
|
@ -428,7 +428,11 @@ final class PollEventDriverWatchers(Events : EventDriverEvents) : EventDriverWat
|
|||
if (generate_changes)
|
||||
addChange(FileChangeKind.removed, e.key, e.value.isDir);
|
||||
}
|
||||
delete e.value;
|
||||
|
||||
static if (__VERSION__ >= 2079) {
|
||||
import core.memory : __delete;
|
||||
__delete(e.value);
|
||||
} else mixin("delete e.value;");
|
||||
}
|
||||
|
||||
foreach (e; added)
|
||||
|
|
Loading…
Reference in a new issue