Remove some unused function from z.js