Unify PlatformTarget.clean().

All of the implementations were identical, except for `FlashPlatform`, which was identical with extra steps.
This commit is contained in:
Joseph Cloutier
2025-08-31 22:35:35 -04:00
parent 057a2a4f5e
commit 5e3f77a44f
12 changed files with 7 additions and 91 deletions

View File

@@ -103,16 +103,6 @@ class FlashPlatform extends PlatformTarget
System.runCommand("", "haxe", [targetDirectory + "/haxe/" + buildType + ".hxml"]);
}
public override function clean():Void
{
var targetPath = targetDirectory + "";
if (FileSystem.exists(targetPath))
{
System.removeDirectory(targetPath);
}
}
public override function deploy():Void
{
DeploymentHelper.deploy(project, targetFlags, targetDirectory, "Flash");