Skip to content

Conversation

tmssngr
Copy link
Contributor

@tmssngr tmssngr commented Oct 1, 2025

The indentation was screwed up, so it was hard to understand the logic.

I also removed the unused assignment to result and the empty else-branch.

remove unused code (setting result)
Copy link
Contributor

github-actions bot commented Oct 1, 2025

Test Results

  111 files   -  7    111 suites   - 7   11m 29s ⏱️ +22s
4 528 tests  - 55  4 513 ✅  - 34  14 💤  - 22  0 ❌ ±0  1 🔥 +1 
  274 runs   - 56    273 ✅  - 34   1 💤  - 22  0 ❌ ±0 

For more details on these errors, see this check.

Results for commit d383295. ± Comparison against base commit 48e5878.

This pull request removes 56 and adds 1 tests. Note that renamed tests count towards both.
AllWin32Tests ImageWin32Tests ‑ testDisposeDrawnImageBeforeRequestingTargetForOtherZoom
AllWin32Tests ImageWin32Tests ‑ testDrawImageAtDifferentZooms(boolean)[1] true
AllWin32Tests ImageWin32Tests ‑ testDrawImageAtDifferentZooms(boolean)[2] false
AllWin32Tests ImageWin32Tests ‑ testImageDataForDifferentFractionalZoomsShouldBeDifferent
AllWin32Tests ImageWin32Tests ‑ testImageShouldHaveDimesionAsPerZoomLevel
AllWin32Tests ImageWin32Tests ‑ testRetrieveImageDataAtDifferentZooms(boolean)[1] true
AllWin32Tests ImageWin32Tests ‑ testRetrieveImageDataAtDifferentZooms(boolean)[2] false
AllWin32Tests ImageWin32Tests ‑ test_getImageData_fromCopiedImage
AllWin32Tests ImageWin32Tests ‑ test_getImageData_fromImageForImageDataFromImage
AllWin32Tests TestTreeColumn ‑ test_ColumnOrder
…
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_dnd_Clipboard ‑ Unknown test

@jonahgraham
Copy link
Contributor

@tmssngr the failed test on Windows is something new I introduced and the Windows failure is being investigated in #2568

boolean [] consume = new boolean [1];
if (dragDetect ((int) eventX[0], (int) eventY[0], true, true, consume)) {
dragging = true;
if (consume [0]) result = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line deleted on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because result is not used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please remove "result" variable entirely in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants