Remove `Dub.updatePackageSearchPath`
This function was essentially two functions: One when an override was set,
another one for the common case. However, the function is private,
and the number of call sites is limited, so it's better to inline
the call at the caller site. Once that was done, it became obvious
it only ever has an effect once, when the Dub instance is constructed,
as we don't modify this environment variable.
Thus, we can inline it in the constructor, and remove the dead branches.
1 parent 376b7da commit 45984fa3c41ab6327d3b6327969eef339f6d921d
@Geod24 Geod24 authored on 6 Aug 2022
Mathias LANG committed on 7 Aug 2022
Showing 2 changed files
View
source/dub/dub.d
View
source/dub/packagemanager.d