remove unused variable linecount