remove unused triggerResize function