Remove redundant function print-warning.