Remove unused pathname variable