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

rust: remove unused #9020

Closed
wants to merge 1 commit into from
Closed

Conversation

catenacyber
Copy link
Contributor

@catenacyber catenacyber commented Jun 13, 2023

Link to redmine ticket:
None, generic cleaning
https://redmine.openinfosecfoundation.org/issues/4083

Describe changes:

  • rust: remove unused dead code

Found with
git grep 'pub ' rust/src/ | cut -d: -f1 | uniq | xargs sed -i -e 's/pub /pub(crate) /' then see rust warnings when compiling

There is nothing more to be done :

  • There are parsed fields which get never used. (like rrclass in DNSQueryEntry) : I feel good to keep them

Completes #8976, modifies #9014 by being more complete as agreed with Jason

@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Merging #9020 (c422b0c) into master (da99a69) will increase coverage by 0.04%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9020      +/-   ##
==========================================
+ Coverage   82.26%   82.31%   +0.04%     
==========================================
  Files         969      969              
  Lines      273740   273617     -123     
==========================================
+ Hits       225203   225230      +27     
+ Misses      48537    48387     -150     
Flag Coverage Δ
fuzzcorpus 64.52% <ø> (+0.08%) ⬆️
suricata-verify 60.54% <ø> (-0.01%) ⬇️
unittests 62.92% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 14487

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 14729

@victorjulien victorjulien removed their request for review June 28, 2023 08:22
@victorjulien victorjulien added this to the 8.0 milestone Jul 11, 2023
@catenacyber catenacyber mentioned this pull request Jul 19, 2023
@catenacyber
Copy link
Contributor Author

Rebased in #9256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants