[Security] removed an unused parameter in some private methods