Deprecate Package.getInternalSubPackage, simplify DepedencyResolver
The PackageManager will always eagerly load subpackages, whether they are path based or embedded (see addPackages). So calling getInternalSubPackage if getSubPackage returned null will never yield a non-Nullable object. In short, we can simplify that code greatly, and as Package.getInternalSubPackage does not handle all use case and require using the PackageManager anyway, just deprecate it and direct people to the right function. |
---|
|
source/dub/dub.d |
---|
source/dub/package_.d |
---|
source/dub/packagemanager.d |
---|