minify: remove unused local function declarations.