Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused methods in ConGetSet and SCREEN_INFORMATION #9772

Merged
3 commits merged into from
Apr 12, 2021

Conversation

j4james
Copy link
Collaborator

@j4james j4james commented Apr 10, 2021

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

@ghost ghost added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Apr 10, 2021
Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love the fresh smell of dead code removal in the morning

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heck YES. Thank you.

@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label Apr 12, 2021
@ghost
Copy link

ghost commented Apr 12, 2021

Hello @DHowett!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 83bd241 into microsoft:main Apr 12, 2021
@j4james j4james deleted the nuke-unused-methods branch May 6, 2021 14:48
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task: Remove unused methods in ConGetSet and SCREEN_INFORMATION
3 participants