diff --git a/source/dub/dub.d b/source/dub/dub.d index ba1536e..98d10e6 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -524,14 +524,6 @@ loadSingleFilePackage(NativePath(path)); } - deprecated("Instantiate a Dub instance with the single-argument constructor: `new Dub(path)`") - void overrideSearchPath(NativePath path) - { - if (!path.absolute) path = NativePath(getcwd()) ~ path; - m_packageManager.disableDefaultSearchPaths = true; - m_packageManager.searchPath = [path]; - } - /** Gets the default configuration for a particular build platform. This forwards to `Project.getDefaultConfiguration` and requires a diff --git a/source/dub/packagemanager.d b/source/dub/packagemanager.d index 684b1b8..1bcbb9f 100644 --- a/source/dub/packagemanager.d +++ b/source/dub/packagemanager.d @@ -78,16 +78,6 @@ this.refresh(true); } - deprecated("Use the overload which accepts 3 `NativePath` arguments") - this(NativePath user_path, NativePath system_path, bool refresh_packages = true) - { - m_repositories = [ - Location(user_path ~ "packages/"), - Location(system_path ~ "packages/")]; - - if (refresh_packages) refresh(true); - } - this(NativePath package_path, NativePath user_path, NativePath system_path, bool refresh_packages = true) { m_repositories = [ @@ -109,16 +99,6 @@ /// ditto @property const(NativePath)[] searchPath() const { return this.m_internal.searchPath; } - /** Disables searching DUB's predefined search paths. - */ - deprecated("Instantiate a PackageManager instance with the single-argument constructor: `new PackageManager(path)`") - @property void disableDefaultSearchPaths(bool val) - { - if (val == m_disableDefaultSearchPaths) return; - m_disableDefaultSearchPaths = val; - refresh(true); - } - /** Returns the effective list of search paths, including default ones. */ @property const(NativePath)[] completeSearchPath()