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

codec: remove unused, untested and expensive MarshalIndentFromJSON #6667

Merged
merged 2 commits into from
Jul 9, 2020
Merged

codec: remove unused, untested and expensive MarshalIndentFromJSON #6667

merged 2 commits into from
Jul 9, 2020

Conversation

odeke-em
Copy link
Collaborator

@odeke-em odeke-em commented Jul 9, 2020

Noticed as part of an audit that the implementation was expensive,
and I've been informed that this function can be removed anyways
as it isn't being visibly used and a Github search doesn't turn up
useful results:
https://github.com/search?q=MarshalIndentFromJSON&type=Issues

Fixes #6666

Description

closes: #6666


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

Noticed as part of an audit that the implementation was expensive,
and I've been informed that this function can be removed anyways
as it isn't being visibly used and a Github search doesn't turn up
useful results:
https://github.com/search?q=MarshalIndentFromJSON&type=Issues

Fixes #6666
@codecov
Copy link

codecov bot commented Jul 9, 2020

Codecov Report

Merging #6667 into master will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #6667   +/-   ##
=======================================
  Coverage   57.53%   57.54%           
=======================================
  Files         501      501           
  Lines       30023    30018    -5     
=======================================
  Hits        17274    17274           
+ Misses      11504    11499    -5     
  Partials     1245     1245           

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

ACK :D

@alexanderbez alexanderbez added A:automerge Automatically merge PR once all prerequisites pass. Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. labels Jul 9, 2020
Add Alexander's suggestion to remove entry as it was never released.

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
@alexanderbez alexanderbez merged commit 2da1a63 into cosmos:master Jul 9, 2020
@clevinson clevinson added this to the v0.40 [Stargate] milestone Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

codec: MarshalIndentFromJSON is untested and unnecessarily expensive
3 participants