Removed unused code: invert_range for ports