Skip to content

Commit

Permalink
Remove unnecessary casts.
Browse files Browse the repository at this point in the history
  • Loading branch information
player-03 committed Jan 13, 2024
1 parent 9718b8a commit 8b07a83
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tools/platforms/AIRPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class AIRPlatform extends FlashPlatform
}
else
{
targetPlatform = cast System.hostPlatform;
targetPlatform = System.hostPlatform;
targetPlatformType = DESKTOP;
}
}
Expand Down
4 changes: 2 additions & 2 deletions tools/platforms/LinuxPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class LinuxPlatform extends PlatformTarget
is64 = targetFlags.exists("64");
}

if (project.targetFlags.exists("neko") || project.target != cast System.hostPlatform)
if (project.targetFlags.exists("neko") || project.target != System.hostPlatform)
{
targetType = "neko";
}
Expand Down Expand Up @@ -472,7 +472,7 @@ class LinuxPlatform extends PlatformTarget
{
System.runCommand(applicationDirectory, "java", ["-jar", project.app.file + ".jar"].concat(arguments));
}
else if (project.target == cast System.hostPlatform)
else if (project.target == System.hostPlatform)
{
arguments = arguments.concat(["-livereload"]);
System.runCommand(applicationDirectory, "./" + Path.withoutDirectory(executablePath), arguments);
Expand Down
4 changes: 2 additions & 2 deletions tools/platforms/MacPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class MacPlatform extends PlatformTarget
}
}

if (project.targetFlags.exists("neko") || project.target != cast System.hostPlatform)
if (project.targetFlags.exists("neko") || project.target != System.hostPlatform)
{
targetType = "neko";
}
Expand Down Expand Up @@ -420,7 +420,7 @@ class MacPlatform extends PlatformTarget
{
System.runCommand(executableDirectory, "java", ["-jar", project.app.file + ".jar"].concat(arguments));
}
else if (project.target == cast System.hostPlatform)
else if (project.target == System.hostPlatform)
{
arguments = arguments.concat(["-livereload"]);
System.runCommand(executableDirectory, "./" + Path.withoutDirectory(executablePath), arguments);
Expand Down
2 changes: 1 addition & 1 deletion tools/platforms/WindowsPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ class WindowsPlatform extends PlatformTarget
{
winrtRun(arguments);
}
else if (project.target == cast System.hostPlatform)
else if (project.target == System.hostPlatform)
{
arguments = arguments.concat(["-livereload"]);
System.runCommand(applicationDirectory, Path.withoutDirectory(executablePath), arguments);
Expand Down

0 comments on commit 8b07a83

Please sign in to comment.