Removing another deprecated window call.