Skip to content

Remove functionality marked as deprecated#9603

Merged
michaelDCurran merged 24 commits into
nvaccess:thresholdfrom
LeonarddeR:deprecate
May 29, 2019
Merged

Remove functionality marked as deprecated#9603
michaelDCurran merged 24 commits into
nvaccess:thresholdfrom
LeonarddeR:deprecate

Conversation

@LeonarddeR

@LeonarddeR LeonarddeR commented May 21, 2019

Copy link
Copy Markdown
Collaborator

Link to issue number:

Closes #9548

Summary of the issue:

NVDA contains several functions and classes that are marked deprecated.speech ref

Description of how this pull request fixes the issue:

This Pr removes all code that is marked deprecated. This includes:

  • The appModule for Windows XP sound recorder
  • The appModule for Klango Player, which is abandoned software
  • The wrapper for configobj.validate. New code should use from configobj import validate instead of import validate
  • textInfos.Point and textInfos.Rect are removed and replaced by locationHelper.Point and locationHelper.RectLTRB, respectively
  • braille.BrailleHandler._get/set_tether have been removed
  • config.getConfigDirs is removed
  • config.ConfigManager.getConfigValidationParameter is removed. A bug in getConfigValidation has been fixed in order for it being able to fully replace getConfigValidationParameter
  • inputCore.InputGesture.logIdentifier property has been removed
    synthDriverHandler.SynthDriver.speakText/speakCharacter, survived speech refactor and have been removed
  • Removed several synthDriverHandler.SynthSetting classes. They were kept for backwards compatibility as part of Allow setting braille display specific settings in the GUI #8214 but can be considered obsolete and have been removed as part of this PR. It should be noted that these changes break current drivers that used the SynthSetting classes in the past, so they should start using DriverSetting classes.
  • Some legacy code has been removed, particularly:
    • Support for the Outlook pre 2003 message list
    • An overlay class for the classic start menu, only found in Windows Vista and older
    • We again decided to drop support for Skype 7, as it is definitely not working any more, according to several users of a former patched version.

Testing performed:

  • Tested that getConfigValidation works correctly in the gui
  • Ran NVDA from source using several textInfo implementations. Note that this is not very easy to test thoroughly. However, if code quality is considered ok, it is unlikely that this will cause any issues.
  • Made sure that the explorer and outlook appModules still work as expected.

Known issues with pull request:

None

Change log entry:

Some of the deprecated classes and functions might have to be listed in the changes for developers section, particularly for synthesizer drivers and textInfos. I think the listing above can be a godo starting point for that.

@dpy013

dpy013 commented May 22, 2019

Copy link
Copy Markdown
Contributor

This PR has the following error during the build
Failure: AppVeyor build failed
Can you fix it?
cc
@LeonarddeR

@LeonarddeR

Copy link
Copy Markdown
Collaborator Author

If this fails again, it will be fixed as soon as master is merged into threshold again. Having said that, I'd like to kindly ask you to please refrain from reporting every single failure for a pr, unless you think it is an urgent failure. If pull requests are acted upon, usually the first thing done is fixing these failures or conflicts.

@enessaribas

Copy link
Copy Markdown

Hi Leonardder,
Could we also consider removing support for applications which are long past official support from the developer, wsuch as office xp/2003/2007?

@ruifontes

ruifontes commented May 26, 2019 via email

Copy link
Copy Markdown
Contributor

@josephsl

josephsl commented May 26, 2019 via email

Copy link
Copy Markdown
Contributor

@LeonarddeR

LeonarddeR commented May 27, 2019 via email

Copy link
Copy Markdown
Collaborator Author

@enessaribas

Copy link
Copy Markdown

Hi Leonardder,
You might as well remove the skype7 app module, as it isn't usable when a user signs out. Also it is highly unstable with messages not arriving and requests not being displayed so users shouldn't be using it anyway at this point.
Additionally, does supporting windows 8, also end of life since January 2016, require different code from 8.1 and 10?

@LeonarddeR

LeonarddeR commented May 27, 2019 via email

Copy link
Copy Markdown
Collaborator Author

@beqabeqa473

beqabeqa473 commented May 27, 2019 via email

Copy link
Copy Markdown
Contributor

@zstanecic

zstanecic commented May 27, 2019 via email

Copy link
Copy Markdown
Contributor

@josephsl

josephsl commented May 27, 2019 via email

Copy link
Copy Markdown
Contributor

Comment thread source/installer.py
# earlier versions of NVDA. Its presence causes problems in Windows Vista.
fn = os.path.join(destPath, "mpr.dll")
if os.path.isfile(fn):
tryRemoveFile(fn)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you have evidence that not removing this file does not affect Windows 7 and up? True the comment said Windows Vista, but that is no doubt only because the comment was put there in the Windows Vista timeframe.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If you're not sure, please revert this particular change.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I decided to remove the change as you suggested. Indeed, I'm not 100% sure, and better safe than sorry.

@LeonarddeR

Copy link
Copy Markdown
Collaborator Author

@michaelDCurran: I believe this is now ready.

@michaelDCurran michaelDCurran merged commit a939e3c into nvaccess:threshold May 29, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.2 milestone May 29, 2019
@feerrenrut feerrenrut modified the milestones: 2019.2, 2019.3 Jul 30, 2019
seanbudd pushed a commit that referenced this pull request Oct 19, 2021
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 #9603)
- `getPath` from the poedit appModule - this function was not used anywhere and in addition was broken (it references nonexistent variable `stopObj`
@LeonarddeR LeonarddeR deleted the deprecate branch August 23, 2025 06:27
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.

10 participants