remove unused variable

PrintWriter object is removed as it is not used