Removed unwanted codes

Found these while doing routine checks.

Hello @Steell, could you help with reviewing this? Super small stuff, but thanks! :)
These two have no side effects, just want another pair of eyes. The other files are all due to compiler warning of something that is never used, so you can skim through those in other files. Thanks!