Skip to content
New issue

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

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

Already on GitHub? # to your account

Remove unused function operator<<(std::ostream& out, const vec3& v) #1495

Closed
hollasch opened this issue Apr 4, 2024 · 0 comments
Closed

Comments

@hollasch
Copy link
Collaborator

hollasch commented Apr 4, 2024

Perhaps we'd defined this for color output, but we don't use it.

@hollasch hollasch added this to the Backlog milestone Apr 4, 2024
@hollasch hollasch self-assigned this Apr 4, 2024
@hollasch hollasch modified the milestones: Backlog, v4.0.0 Apr 9, 2024
hollasch added a commit that referenced this issue Apr 15, 2024
When I created issue #1495, I must have been in the middle of a code
progression, because it appeared to me that vec3::operator<< was unused.

Turns out it _is_ used, in debug code for the `constant_medium::hit()`
function. This code was created as a clean-up for the original scattered
debug statements in this function. On review, however, this appears a
bit odd, as the text does not mention the debuggability option (it's
off by default), and no other code in the books has debug print code.

Looking at it again, I think it should be removed, and readers are free
to add whatever debug code they need at any stage in development.

Resolves #1495
hollasch added a commit that referenced this issue Apr 16, 2024
When I created issue #1495, I must have been in the middle of a code
progression, because it appeared to me that vec3::operator<< was unused.

Turns out it _is_ used, in debug code for the `constant_medium::hit()`
function. This code was created as a clean-up for the original scattered
debug statements in this function. On review, however, this appears a
bit odd, as the text does not mention the debuggability option (it's
off by default), and no other code in the books has debug print code.

Looking at it again, I think it should be removed, and readers are free
to add whatever debug code they need at any stage in development.

Resolves #1495
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant