diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-02-08 18:39:05 +0100 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-06-08 16:15:22 +0200 |
commit | 5ddab1f363175cf676be1dbc1a10e818ece788da (patch) | |
tree | c6073602f988d7f82b4e4e27fe3e7f3c1fbef58b /modules/gdscript/tests/gdscript_test_runner.cpp | |
parent | 2985a9ac348fc0e08a7906ff36b08985e36ac2a4 (diff) | |
download | redot-engine-5ddab1f363175cf676be1dbc1a10e818ece788da.tar.gz |
Some code simplifications
AnimationNodeBlendSpace2DEditor:
- `!tree` is always false, because it is checked a few lines above
CurveEdit:
- grabbing != GRAB_NONE is redundant
GradientTexture2DEdit:
- grabbed != HANDLE_FROM is redundant
- grabbed != HANDLE_TO is redundant
Viewport:
- index is not used afterwards
- In these cases `gui.mouse_focus` is always valid. Move check to a DEV_ASSERT
- simplify `stopped` calculation
Diffstat (limited to 'modules/gdscript/tests/gdscript_test_runner.cpp')
0 files changed, 0 insertions, 0 deletions