From d763ba2e9a2bf62a06aabde22a717f01e8a236b5 Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Mon, 4 Apr 2022 17:26:18 +0100 Subject: [PATCH] Remove no longer needed check The check to see if the dev version is equal to the directory to be removed is no longer needed See: #263 and 1390259, 866f009 --- src/haxelib/client/Main.hx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/haxelib/client/Main.hx b/src/haxelib/client/Main.hx index 2b7b65218..0c1c9d6ff 100644 --- a/src/haxelib/client/Main.hx +++ b/src/haxelib/client/Main.hx @@ -1467,9 +1467,6 @@ class Main { final cur = File.getContent(pdir + "/.current").trim(); // set version regardless of dev if( cur == version ) throw "Can't remove current version of library "+prj; - final dev = try getDev(pdir) catch (_:Dynamic) null; // dev is checked here - if( dev == vdir ) - throw "Can't remove dev version of library "+prj; deleteRec(vdir); print("Library "+prj+" version "+version+" removed"); }