Remove unused opened variable