removed unused code in gl example