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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9772
Author: @j4james
Created: 4/11/2021
Status: Merged
Merged: 4/12/2021
Merged by: @undefined

Base: mainHead: nuke-unused-methods


📝 Commits (3)

  • cb5be92 Remove unused GetScrollingRegion method.
  • 3cc5c9c Remove unused Get/SetConsoleCursorInfo methods.
  • d1740c7 Remove Get/SetConsoleCursorInfo from adapter test.

📊 Changes

6 files changed (+0 additions, -92 deletions)

View changed files

📝 src/host/outputStream.cpp (+0 -29)
📝 src/host/outputStream.hpp (+0 -3)
📝 src/host/screenInfo.cpp (+0 -20)
📝 src/host/screenInfo.hpp (+0 -1)
📝 src/terminal/adapter/conGetSet.hpp (+0 -2)
📝 src/terminal/adapter/ut_adapter/adapterTest.cpp (+0 -37)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/9772 **Author:** [@j4james](https://github.com/j4james) **Created:** 4/11/2021 **Status:** ✅ Merged **Merged:** 4/12/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `nuke-unused-methods` --- ### 📝 Commits (3) - [`cb5be92`](https://github.com/microsoft/terminal/commit/cb5be924643a2aa8468d682e0a37d852a36f766d) Remove unused GetScrollingRegion method. - [`3cc5c9c`](https://github.com/microsoft/terminal/commit/3cc5c9cd311b9a382ad1020a9bcc064c20a6974c) Remove unused Get/SetConsoleCursorInfo methods. - [`d1740c7`](https://github.com/microsoft/terminal/commit/d1740c745d160a32aca993e5a3cecc8f566ff4c9) Remove Get/SetConsoleCursorInfo from adapter test. ### 📊 Changes **6 files changed** (+0 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `src/host/outputStream.cpp` (+0 -29) 📝 `src/host/outputStream.hpp` (+0 -3) 📝 `src/host/screenInfo.cpp` (+0 -20) 📝 `src/host/screenInfo.hpp` (+0 -1) 📝 `src/terminal/adapter/conGetSet.hpp` (+0 -2) 📝 `src/terminal/adapter/ut_adapter/adapterTest.cpp` (+0 -37) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:23:53 +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#27729