Skip to content

Comments

Remove unused debug writelns in std.algorithm#5180

Merged
JackStouffer merged 1 commit intodlang:masterfrom
JackStouffer:algorithm-cruft
Mar 1, 2017
Merged

Remove unused debug writelns in std.algorithm#5180
JackStouffer merged 1 commit intodlang:masterfrom
JackStouffer:algorithm-cruft

Conversation

@JackStouffer
Copy link
Contributor

These didn't even work because std.stdio wasn't imported. I highly doubt anyone was using them, and they're not particularly useful anyway.

Copy link
Contributor

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

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

I assume that this cruft is a relict from times in which D wasn't that stable, so I leave this to someone with a longer history to sign off.

FWIW I think that a beautiful language (and D tries to be one) shouldn't require such redundancy for such a "simple" feature of reporting unittest results.
I am still hoping to see DIP83 come alive at some point...

== [ 0, 2, 4, 6, 7, 8, 9, 10]);
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
//writeln(remove!(SwapStrategy.stable)(a, 1, tuple(3, 5)));
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
Copy link
Contributor

Choose a reason for hiding this comment

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

This line can then be removed as well?


a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
//writeln(remove!(SwapStrategy.stable)(a, 1, 3, 5));
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
Copy link
Contributor

Choose a reason for hiding this comment

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

This line can then be removed as well?


a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
//writeln(remove!(SwapStrategy.stable)(a, 1, 5));
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
Copy link
Contributor

Choose a reason for hiding this comment

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

This line can then be removed as well?

@JackStouffer JackStouffer force-pushed the algorithm-cruft branch 2 times, most recently from 5b953ed to 9214a85 Compare February 22, 2017 15:45
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

This is harmless and won't break any existing PR on the same module

@wilzbach wilzbach added this to the 2.074.0 milestone Feb 26, 2017
@andralex
Copy link
Member

That code was mightily useful back in the days when dmd had more bugs than features :)

@JackStouffer
Copy link
Contributor Author

Auto-merge toggled on

@JackStouffer JackStouffer merged commit f6b25d2 into dlang:master Mar 1, 2017
@JackStouffer JackStouffer deleted the algorithm-cruft branch March 1, 2017 16:44
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.

4 participants