Trim unused functsion
Fixed var name pass
Merge remote branch 'origin/7.x-4.x' into 7.x-4.x