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

PPCAnalyst: Remove unused variables and methods in BlockStats and BlockRegStats. #11135

Merged
merged 2 commits into from Oct 23, 2022

Conversation

AdmiralCurtiss
Copy link
Contributor

None of this seems to be used for anything. I'm guessing it was used at some point in the past?

@JosJuice
Copy link
Member

JosJuice commented Oct 8, 2022

Regarding the first commit: Yeah, I'm guessing it was used for register allocation or something.

Removing it seems fine (if someone wants it back for register allocation changes they can always grab it from the git history), but... Since the struct now consists of a single bool, should it really be a struct anymore?

Regarding the second commit: That code does actually do something, even if it's just to be shown in the debugger. Perhaps we should keep it.

@AdmiralCurtiss
Copy link
Contributor Author

Regarding the second commit: That code does actually do something, even if it's just to be shown in the debugger. Perhaps we should keep it.

Does it? Both variables are never set to true anywhere I don't think, so those lines can never execute.

@JosJuice
Copy link
Member

JosJuice commented Oct 8, 2022

Ah. Good point :)

@JosJuice JosJuice merged commit 063c273 into dolphin-emu:master Oct 23, 2022
11 checks passed
@AdmiralCurtiss AdmiralCurtiss deleted the ppcanalyst-unused-stats branch October 23, 2022 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants