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 code in glyph drawing code #128

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

alex-hhh
Copy link
Collaborator

The original intent of the when block was to remove the line around the glyph when the line and fill color were the same. However, the eq? test was always false in Typed Racket, so the code never executed.

The eq? test is now fixed in
racket/typed-racket#1358, but as a result, the visual layout of plots would change, making glyphs smaller, since the outline is not drawn anymore.

To keep the backwards compatibility of the plot look-and-feel, the entire when block was removed.

The original intent of the `when` block was to remove the line around the
glyph when the line and fill color were the same. However, the `eq?` test was
always false in Typed Racket, so the code never executed.

The `eq?` test is now fixed in
racket/typed-racket#1358, but as a result, the visual
layout of plots would change, making glyphs smaller, since the outline is not
drawn anymore.

To keep the backwards compatibility of the plot look-and-feel, the entire
`when` block was removed.
@alex-hhh
Copy link
Collaborator Author

@sorawee FYI

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Resyntax analyzed 0 files in this pull request and found no issues.

@alex-hhh alex-hhh merged commit 5de5490 into racket:master Jan 27, 2024
5 checks passed
@alex-hhh alex-hhh deleted the ah/remove-unused-code branch January 27, 2024 01:45
@sorawee
Copy link

sorawee commented Jan 29, 2024

Interestingly, DrDr has still been failing, even after this PR.

http://drdr.racket-lang.org/65790/

@samth do you know what's going on?

@alex-hhh
Copy link
Collaborator Author

@sorawee is there a way in DrDr to get access to the build artifacts? I downloaded the archive (trunk.tgz), but that seems to only contain the source code being built... It would be good to compare the draw steps on the built to determine what failed.

@samth
Copy link
Member

samth commented Jan 29, 2024

I believe that it was just the pkg server not updating; it looks fixed now.

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.

3 participants