Removed unused code from Gap.py