Skip to content

Remove dead code #3257

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

Merged
merged 1 commit into from
Nov 21, 2019
Merged

Remove dead code #3257

merged 1 commit into from
Nov 21, 2019

Conversation

twmr
Copy link
Contributor

@twmr twmr commented Nov 18, 2019

This code is not needed, since get_ast with data != None is only
needed for the --from-stdin feature, where get_ast is only called
once. Therefore, a cache is not needed.

Steps

  • Add yourself to CONTRIBUTORS if you are a new contributor.
  • Add a ChangeLog entry describing what your PR does.
  • If it's a new feature or an important bug fix, add a What's New entry in doc/whatsnew/<current release.rst>.
  • Write a good description on what the PR does.

Description

Type of Changes

Type
🐛 Bug fix
✨ New feature
🔨 Refactoring
📜 Docs

Related Issue

@twmr
Copy link
Contributor Author

twmr commented Nov 18, 2019

I've just stumbled upon pylint-dev/astroid#251, which we should fix at some point.

This code is not needed, since get_ast with `data` != None is only
needed for the --from-stdin feature, where get_ast is only called
once. Therefore, a cache is not needed.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 89.83% when pulling df77c7f on thisch:rmcache into 9bdae8b on PyCQA:master.

@PCManticore PCManticore merged commit fbaf0ee into pylint-dev:master Nov 21, 2019
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