Remove unused windows/globals