# `GSPath removeDuplicateNodes`

*Instance Method*

Removes adjacent on-curve nodes at the same position.

## Declaration

```swift
func removeDuplicateNodes()
```

```objc
- (void) removeDuplicateNodes;
```

```python
removeDuplicateNodes()
```

## See Also

### Cleanup

- [`GSPath cleanUp`](/Core/GlyphsCore/GSPath/cleanUp) — Removes redundant nodes and rounds node positions to the layer grid.
- [`GSPath cleanUpGrid:`](/Core/GlyphsCore/GSPath/cleanUpGrid:) — Removes redundant nodes and rounds node positions to a grid.
- [`GSPath findRequiredNodeIndexes:grid:`](/Core/GlyphsCore/GSPath/findRequiredNodeIndexes:grid:) — Adds the node indices that cleanup would keep.

