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

Remove unused code #87

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Remove unused code #87

wants to merge 2 commits into from

Conversation

Toreno96
Copy link
Collaborator

@Toreno96 Toreno96 commented Jun 5, 2024

No description provided.

Toreno96 added 2 commits June 6, 2024 00:00
Detected using [vulture]:

```
$ vulture . --exclude __pypackages__,.venv
onetimepass/db/models.py:67: unused variable 'OTPParams' (60% confidence)
onetimepass/db/models.py:81: unused function 'valid_base32_secret' (60% confidence)
onetimepass/db/models.py:89: unused function 'valid_params_for_otp_type' (60% confidence)
onetimepass/db/models.py:106: unused function 'supported_version' (60% confidence)
onetimepass/db/models.py:119: unused method 'add_totp_alias' (60% confidence)
onetimepass/db/models.py:159: unused function 'get_params_by_type' (60% confidence)
onetimepass/enum.py:12: unused method '_missing_' (60% confidence)
onetimepass/enum.py:27: unused variable 'SHA256' (60% confidence)
onetimepass/enum.py:28: unused variable 'SHA512' (60% confidence)
onetimepass/otp.py:146: unused function 'show' (60% confidence)
onetimepass/otp.py:220: unused function 'init' (60% confidence)
onetimepass/otp.py:261: unused function 'delete' (60% confidence)
onetimepass/otp.py:281: unused function 'list_' (60% confidence)
onetimepass/otp.py:302: unused function 'export' (60% confidence)
onetimepass/otp.py:316: unused function 'import_' (60% confidence)
onetimepass/otp.py:351: unused function 'add_uri' (60% confidence)
onetimepass/otp.py:427: unused function 'add_hotp' (60% confidence)
onetimepass/otp.py:479: unused function 'add_totp' (60% confidence)
onetimepass/otp.py:539: unused function 'rename' (60% confidence)
onetimepass/otpauth/errors.py:10: unused variable 'msg_template' (60% confidence)
onetimepass/otpauth/errors.py:18: unused variable 'msg_template' (60% confidence)
onetimepass/otpauth/errors.py:23: unused variable 'msg_template' (60% confidence)
onetimepass/otpauth/schemas.py:24: unused function 'issuer_must_match_pattern' (60% confidence)
onetimepass/otpauth/schemas.py:109: unused function 'strip_leading_spaces' (60% confidence)
onetimepass/otpauth/schemas.py:125: unused function 'scheme_must_be_otpauth' (60% confidence)
onetimepass/otpauth/schemas.py:131: unused function 'set_label' (60% confidence)
onetimepass/otpauth/schemas.py:135: unused function 'parameters_issuer_equals_label_issuer' (60% confidence)
onetimepass/settings.py:12: unused variable 'DEFAULT_HASH_ALGORITHM' (60% confidence)
```

Some of those were false positives: most notably, `@validator`-decorated
functions in Pydantic models and `@click.*`-decorated functions that
implement the bottom-most commands.

[vulture]: https://github.com/jendrikseipp/vulture/tree/v2.11
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.

1 participant