Skip to content

remove calls to Component._draw_component#737

Merged
aaronayres35 merged 1 commit into
masterfrom
remove-_draw_component
May 18, 2021
Merged

remove calls to Component._draw_component#737
aaronayres35 merged 1 commit into
masterfrom
remove-_draw_component

Conversation

@aaronayres35
Copy link
Copy Markdown
Contributor

Part of #736 (maybe this is enough to close the issue? We may want to remove all use of _draw_component, even uses that won't break)

These 2 calls actually were calling Component._draw_component living in enable which currently is a no-op:
https://github.com/enthought/enable/blob/21c299e1229d74e9db701487a613934e332a7225/enable/component.py#L344-L350

There are other uses of _draw_component across chaco that can be removed, but they will not cause a break if _draw_component is removed in enable (ref enthought/enable#814), because the method gets overwritten in chaco.

Copy link
Copy Markdown
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.

This isn't enough to close #736 as we also want to remove the "deprecated" comments in the _draw_component once we take a better look at those methods.

@aaronayres35 aaronayres35 merged commit 86ec92e into master May 18, 2021
@aaronayres35 aaronayres35 deleted the remove-_draw_component branch May 18, 2021 11:59
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.

2 participants