Internal: Removing unused methods/parameters.

Close #7474