Remove redundant WindowListener method