remove unused variable lineMax