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 old deprecated drawing methods #814

Merged
merged 1 commit into from
May 18, 2021

Conversation

aaronayres35
Copy link
Contributor

closes #794
closes #781

This PR removes the _draw_component methods on Container/Component as well as the _draw_overlays (note _draw_overlay is still around) and _draw_children methods on container.

Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

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

LGTM

with gc:
gc.set_antialias(False)

self._draw_container(gc, mode)
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like this can also be removed because there are newer methods _draw_container_* where * is the respective layer.

Note that Scrolled._draw makes use of this _draw_container but at the moment, _draw_container doesn't do anything

Copy link
Contributor

Choose a reason for hiding this comment

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

I haven't verified that _draw_container can actually be removed - that was just my hunch given the brief amount of time spent reviewing this PR. You'll want to check chaco as well and handle this in a separate PR

@aaronayres35 aaronayres35 merged commit 906fe9d into master May 18, 2021
@aaronayres35 aaronayres35 deleted the remove-deprecated-draw-methods branch May 18, 2021 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove deprecated draw methods in "Component" and "Container" Can "_draw_component" methods be removed?
2 participants