-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused legacy code & defines #3059
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 |
Totally forgot about this, gonna look into it for the upcoming release. I backmerged release6, lmk if anything looks wrong CI Failing is my fault, I'm on it |
It should be good now, hoping CI can get worked out soon |
… into remove-legacy-code
Thanks! |
* Fix FlxSpriteGroup origin (#2981) * update children origins relative to their positions * add originTransform unit test * Better framerate independant camera lerping (#2922) * adjust lerp based on the current frame rate * better framerate independant camera lerping * fix error * remove setter * docs * fix default lerp in follow() * fix typo * add #2981 and #2922 * Flxstate new (#2733) * take FlxState constructor instead of FlxState * add NextState type * 4.0.5 fixes * more 4.0.5 fixes * fix deprecation warnings in unit tests * take nextState in VCRFrontEnd * remove @from Instance in InitialState * use is operator * improve docs * rename method * more docs * more modular FlxSplash, set _gameJustStarted in FlxGame * allow splash to be skipped by a switchState call * touch-ups for #2733 (#3003) * take FlxState constructor instead of FlxState * add NextState type * 4.0.5 fixes * more 4.0.5 fixes * fix deprecation warnings in unit tests * take nextState in VCRFrontEnd * remove @from Instance in InitialState * use is operator * improve docs * rename method * more docs * more modular FlxSplash, set _gameJustStarted in FlxGame * allow splash to be skipped by a switchState call * touch-ups * add #2733 * Remove deprecated features (#3048) * remove deprecated features * more removals * Update FlxCamera.hx * remove defaultCameras * Default zoom (#2907) * add bindScrollPos * improve SCREEN_BY_SCREEN follow mode * make cameras suck less when using FlxCamera.defaultZoom <> 1.0 * Replace references to FlxG.camera with this.getDefaultCamera (#3072) * add getDefaultCamera, stop using FlxG.camera for everything * more uses of getDefaultCamera * fix flxpath * changelog * Calculate adjustedLerp only when necessary (#3106) * Calculate adjustedLerp only when necessary * Skip updateLerp on followLerp <= 0 * replace boundLerp with gt/lt checks --------- Co-authored-by: George Kurelic <[email protected]> * style * 1 line patch? (#3254) * update haxelib after merge * Log pos (#3338) * change logs to include posInfos * fix flash errors * D'oh * update Changelog * Add analog directional input to FlxVirtualPad (#3340) * add overloaded scale * add FlxReadOnlyPoint * deprecate statusAnimations * fix drawCircle centering * Add analog stick to FlxVirtualPad * fix code climate * D'oh * fix coverage * fix flash * add distance overloads * add FlxMath.getFrameLerp * honor camera in checkInput * add FlxVirtualStick deprecate FlxAnalog * rename to getElapsedLerp * fix multi-touch * D'oh! * doc * add FlxAnalogState helpers * rename signals, add statuses * add deadzone * remove lerp constructor arg * fix unit test warning * overload more shit * 5.10.0 * change 5.10->6 * Remove unused legacy code & defines (#3059) * Remove legacy code & defines - 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 * Removed `legacy` define being set in include.xml * Re-added `#if !flash` check in `initRenderMethod` I mistakenly removed the entire code due to it including `lime_legacy`. * Brought back `undump()` & `canBeDumped` as `refreshBitmap()` & `canBeRefreshed` respectively (old ones are now deprecated) - Also brought back `onAssetsReload()` & `getBitmapFromSystem()` * Added missing line breaks * remove old import * Remove another deprecated define * Restored mistakenly-removed define check * Rename `refreshBitmap()` to `refresh()` --------- Co-authored-by: George FunBook <[email protected]> * FlxSave: Replace `FlxSaveStatus.ERROR` with SAVE_ERROR (#3294) * replace `FlxSaveStatus.ERROR` with SAVE_ERROR * update changelog * add link * Add deprecated ERROR back * remove implicit int casts to/from directions (#3308) * remove implicit int casts to/from directions * D'oh * D'oh! * deprecate operators and fix haxe 4.2.5 * order imports * remove casts, add explicit cast functions * fix not() and add tests * Doc * doc + tests * update changelog * finalize(?) changelog * enable glsl3 (when openfl does) (#3347) * update Changelog * prepare for release --------- Co-authored-by: 47rooks <[email protected]> Co-authored-by: rich <[email protected]> Co-authored-by: DetectiveBaldi <[email protected]> Co-authored-by: Flainn <[email protected]>
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.