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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused code #6065

Merged
merged 6 commits into from May 31, 2020
Merged

Remove unused code #6065

merged 6 commits into from May 31, 2020

Conversation

terencechain
Copy link
Member

Sunday funday code cleaning continue 馃Ч

This PR removes the unused code via Goland inspection馃Ч

@terencechain terencechain added Enhancement New feature or request Ready For Review A pull request ready for code review labels May 31, 2020
@terencechain terencechain requested a review from a team as a code owner May 31, 2020 21:34
@terencechain terencechain self-assigned this May 31, 2020
Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

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

Please clean up godocs for methods that were deleted

@@ -79,14 +79,6 @@ func FromBytes8(x []byte) uint64 {
// LowerThan returns true if byte slice x is lower than byte slice y. (little-endian format)
Copy link
Member

Choose a reason for hiding this comment

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

Need to delete the comments too?

@@ -186,17 +178,6 @@ func FromBytes48Array(x [][48]byte) [][]byte {
}

// Xor xors the bytes in x and y and returns the result.
Copy link
Member

Choose a reason for hiding this comment

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

Delete comments too?

@@ -104,12 +104,6 @@ func HashKeccak256(data []byte) [32]byte {

// RepeatHash applies the sha256 hash function repeatedly
Copy link
Member

Choose a reason for hiding this comment

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

Comments?

@@ -45,25 +44,3 @@ func assertLogs(t *testing.T, hook *test.Hook, want string, flag bool) {
// WaitForLog waits for the desired string to appear the logs within a
Copy link
Member

Choose a reason for hiding this comment

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

Comments

@terencechain
Copy link
Member Author

Please clean up godocs for methods that were deleted

oops sorry, just realized using goland's delete button did not delete the comments

@prestonvanloon prestonvanloon merged commit 6e514b9 into master May 31, 2020
@delete-merged-branch delete-merged-branch bot deleted the mo-cleaning branch May 31, 2020 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants