Skip to content

Remove unused and / or broken code#12935

Merged
seanbudd merged 6 commits into
nvaccess:masterfrom
lukaszgo1:unusedBroken2021
Oct 19, 2021
Merged

Remove unused and / or broken code#12935
seanbudd merged 6 commits into
nvaccess:masterfrom
lukaszgo1:unusedBroken2021

Conversation

@lukaszgo1

@lukaszgo1 lukaszgo1 commented Oct 14, 2021

Copy link
Copy Markdown
Contributor

Keeping as a draft until development cycle for 2022.1 begins, as these changes break backwards compatibility.

Link to issue number:

None

Summary of the issue:

NVDA contains some broken and / or unused code. 2022.1 seems a good opportunity to get rid of it.

Description of how this pull request fixes the issue:

This PR removes the following:

  • sysTreeView32 contains unused TVItemStruct - no idea what for (this code was there and was unused since 97a2fc6 so for as long as this module).
  • MessageItem class from the app Module for Outlook (last usages removed in Remove functionality marked as deprecated #9603)
  • getPath from the poedit appModule - this function was not used anywhere and in addition was broken (it references nonexistent variable stopObj

Testing strategy:

With git grep ensured that removed code is not used.

Known issues with pull request:

There is probably more dead code in NVDA - I've removed only what I've encountered when working on various other fixes in the past.

Change log entries:

For Developers

  • TVItemStruct is removed from sysTreeView32
  • MessageItem has been removed from Outlook appModule.

Code Review Checklist:

  • Pull Request description:
    • description is up to date
    • change log entries
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • API is compatible with existing add-ons.
  • Documentation:
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English

@cary-rowen

This comment has been minimized.

@lukaszgo1

This comment has been minimized.

@seanbudd seanbudd added this to the 2022.1 milestone Oct 14, 2021
@Brian1Gaff

Brian1Gaff commented Oct 15, 2021 via email

Copy link
Copy Markdown

@lukaszgo1

Copy link
Copy Markdown
Contributor Author

I do still use Outlook Express in windows 7, so if any of it refers to this, I know of a few others who do this also, best to happen only when windows 7 is dropped.

No - the class removed from the Outlook app module does not apply to OE in any way. Besides it was unused since 2019.3.

@lukaszgo1

Copy link
Copy Markdown
Contributor Author

Given development cycle for 2022.1 has began I'm marking this as ready for review.

@lukaszgo1 lukaszgo1 marked this pull request as ready for review October 19, 2021 09:01
@lukaszgo1 lukaszgo1 requested a review from a team as a code owner October 19, 2021 09:01
@lukaszgo1 lukaszgo1 requested a review from seanbudd October 19, 2021 09:01
@seanbudd seanbudd merged commit 69f210f into nvaccess:master Oct 19, 2021
@lukaszgo1 lukaszgo1 deleted the unusedBroken2021 branch October 20, 2021 09:33
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.

4 participants