# `GSPathOperator removeOverlapSegments:error:`

*Type Method*

## Declaration

```swift
class func removeOverlapSegments(_ originalSegments: [GSPathSegment]!) throws -> NSMutableArray
```

```objc
+ (NSMutableArray<GSPathSegment *> *) removeOverlapSegments:(NSArray<GSPathSegment *> *) originalSegments error:(NSError **) error;
```

```python
removeOverlapSegments_error_(originalSegments: list[GSPathSegment]) -> tuple[list[GSPathSegment], NSError]
```

