-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove unused legacy code & defines #3059
base: release6
Are you sure you want to change the base?
Conversation
- Removed `FLX_POST_PROCESS` define & related code - Removed references to `openfl_next`, `lime_legacy` & `next` defines - Removed Lime & OpenFL version checks that are always true/false due to the current minimum versions
Because of the breaking changes, I've changed this PR so it will go to the 6.0.0 release branch rather than dev. @Starmapo please, backmerge the release6 branch into this branch, just in case CI Errors: TexturePackerAtlas Demo
PostProcess Demo
|
Huh, I wasn't expecting there to be demos that use these features. TexturePackerAtlas was added 11 years ago, and PostProcess isn't even on the site currently. I'll make a PR over there fixing it. Merged the release6 branch like you said 👍 |
@EliteMasterEric was requesting expansion of the this PR seems to directly conflict with that |
I was originally going to make a PR for that, but then noticed that there were already If you do see a reason to keep them in this PR, then let me know. |
I mistakenly removed the entire code due to it including `lime_legacy`.
what is the plan, now? |
We have to keep |
Sorry, I missed that, yeah I think thats a good idea |
…Refreshed` respectively (old ones are now deprecated) - Also brought back `onAssetsReload()` & `getBitmapFromSystem()`
I decided to bring back |
This PR removes a lot of code that goes unused in current versions of HaxeFlixel.
FLX_POST_PROCESS
define & its related code. This was only available in versions of OpenFL before 4.0.0, which is not supported in the latest HaxeFlixel (minimum OpenFL version is 9.2.2).openfl_next
,lime_legacy
&next
defines. These defines were removed in the same commit asopenfl_legacy
, which was also already removed from HaxeFlixel in Removing all references ofopenfl_legacy
. #2990.#if (lime >= 7.0.0)
is always true due to the minimum version being 8.0.2).There are a few breaking changes:
PostProcess
class was deleted, which was still available whenFLX_POST_PROCESS
wasn't defined, though it was merely a placeholder.addPostProcess
andremovePostProcess
were also removed fromFlxG
, having the same effect.dump
andundump
have been removed fromFlxGraphic
, due todump
only doing anything whenlime_legacy
was defined. Due to this, all variables and functions that made use of these were removed, includingFlxG.bitmap.onAssetsReload
which refreshed the assets by callingundump
whenever a change event was dispatched inopenfl.utils.Assets
. However, I could not find a single instance in Lime or OpenFL when this event would actually be dispatched, so it doesn't seem to have any purpose unless the user is meant to dispatch it themselves.