Remove unnecessary pass-by-reference signatures.

Signed-off-by: Rack Lin <racklin@gmail.com>