[PR #9772] Remove unused methods in ConGetSet and SCREEN_INFORMATION #27734

Open
opened 2026-01-31 09:23:54 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/9772

State: closed
Merged: Yes


This PR removes the GetConsoleCursorInfo and SetConsoleCursorInfo
methods from the ConGetSet interface, and the GetScrollingRegion
method from the SCREEN_INFORMATION class. None of these methods are
used anymore.

PR #2764 removed the last usage of GetScrollingRegion.

The Get/SetConsoleCursorInfo methods don't seem to have ever been used
in the time that the terminal code has been open source, so whatever
purpose they originally served must have been replaced a long time ago.

The GetScrollingRegion method was originally called from the
ScrollRegion function, but that usage was removed in PR #2764 when the
margin handling was moved to a higher level.

I've checked that the code still compiles.

Closes #9771

**Original Pull Request:** https://github.com/microsoft/terminal/pull/9772 **State:** closed **Merged:** Yes --- This PR removes the `GetConsoleCursorInfo` and `SetConsoleCursorInfo` methods from the `ConGetSet` interface, and the `GetScrollingRegion` method from the `SCREEN_INFORMATION` class. None of these methods are used anymore. PR #2764 removed the last usage of `GetScrollingRegion`. The `Get/SetConsoleCursorInfo` methods don't seem to have ever been used in the time that the terminal code has been open source, so whatever purpose they originally served must have been replaced a long time ago. The `GetScrollingRegion` method was originally called from the `ScrollRegion` function, but that usage was removed in PR #2764 when the margin handling was moved to a higher level. I've checked that the code still compiles. Closes #9771
claunia added the pull-request label 2026-01-31 09:23:54 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27734