Skip to content
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

[ufotools] remove unused code #1098

Merged
merged 3 commits into from
Mar 4, 2020
Merged

Conversation

josh-hadley
Copy link
Collaborator

Removed unused methods, imports, and classes from ufotools.py module which are no longer used since autohint has been deprecated. This has a side-effect of improving test code coverage.

- removed numerous methods and classes that are no longer used anywhere in the AFDKO anymore. Improves code coverage since the unused code was not being tested, either.
- remove psautohint.ufoFont.HashPointPen
@lgtm-com
Copy link

lgtm-com bot commented Mar 4, 2020

This pull request fixes 2 alerts when merging e79c842 into bbedb0e - view on LGTM.com

fixed alerts:

  • 2 for Unused local variable

miguelsousa
miguelsousa previously approved these changes Mar 4, 2020
# the inital moveto to a lineto.
firstPointElement.set("type", "line")


bezToUFOPoint = {
Copy link
Member

Choose a reason for hiding this comment

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

bezToUFOPoint dict can be removed as well, I think.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done (and more) in 058525a

- removed additional unused code and constants that @miguelsousa pointed out
- updated module documentation to reflect the updated purpose of the module as an AFDKO-internal library.
@lgtm-com
Copy link

lgtm-com bot commented Mar 4, 2020

This pull request fixes 2 alerts when merging 058525a into bbedb0e - view on LGTM.com

fixed alerts:

  • 2 for Unused local variable

@josh-hadley josh-hadley merged commit 1b84240 into develop Mar 4, 2020
@josh-hadley josh-hadley deleted the jh-improve-ufotools-coverage branch March 4, 2020 22: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.

2 participants