Can we get rid of RendererTests.cpp? #16035

Closed
opened 2026-01-31 04:55:35 +00:00 by claunia · 1 comment
Owner

Originally created by @j4james on GitHub (Dec 2, 2021).

Description of the new feature/enhancement

I was looking at the two s_CreateInstance methods in the Renderer class:
dacff61f88/src/renderer/base/renderer.hpp (L38-L44)

As far as I can see, they aren't actually defined anywhere. And the only place they seem to be used (one of them at least) is in the RendererTests.cpp file:
fb597ed304/src/host/ut_host/RendererTests.cpp (L51-L59)

But that file just looks like a stub, and isn't actually included in the Host.UnitTests project. Do we really need to keep it?

Proposed technical implementation details (optional)

Nuke the RendererTests.cpp file and remove the two s_CreateInstance declarations from the Renderer class.

Originally created by @j4james on GitHub (Dec 2, 2021). # Description of the new feature/enhancement I was looking at the two `s_CreateInstance` methods in the `Renderer` class: https://github.com/microsoft/terminal/blob/dacff61f8862fa7c28f0244e74555cb2658455ad/src/renderer/base/renderer.hpp#L38-L44 As far as I can see, they aren't actually defined anywhere. And the only place they seem to be used (one of them at least) is in the `RendererTests.cpp` file: https://github.com/microsoft/terminal/blob/fb597ed304ec6eef245405c9652e9b8a029b821f/src/host/ut_host/RendererTests.cpp#L51-L59 But that file just looks like a stub, and isn't actually included in the `Host.UnitTests` project. Do we really need to keep it? # Proposed technical implementation details (optional) Nuke the `RendererTests.cpp` file and remove the two `s_CreateInstance` declarations from the `Renderer` class.
claunia added the Issue-FeatureNeeds-TriageResolution-Fix-CommittedNeeds-Tag-Fix labels 2026-01-31 04:55:35 +00:00
Author
Owner

@ghost commented on GitHub (Feb 3, 2022):

:tada:This issue was addressed in #11872, which has now been successfully released as Windows Terminal Preview v1.13.10336.0.🎉

Handy links:

@ghost commented on GitHub (Feb 3, 2022): :tada:This issue was addressed in #11872, which has now been successfully released as `Windows Terminal Preview v1.13.10336.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.13.10336.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16035