Skip to content

Commit 5b42bee

Browse files
paulpadriaanm
authored andcommitted
Offer warning when demonstrably non-side-effect...
Offer warning when demonstrably non-side-effecting expressions appear in statement position, which should be unintentional by definition. Threw in removal of six places with useless discarded expressions which the warning informed me about. No review.
1 parent 08916d1 commit 5b42bee

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/library/scala/xml/dtd/ContentModel.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ object ContentModel extends WordExp {
5252
sb append sep
5353
buildString(z, sb)
5454
}
55-
sb
5655
}
5756

5857
def buildString(c: ContentModel, sb: StringBuilder): StringBuilder = c match {

0 commit comments

Comments
 (0)