Skip to content

Commit 52adadd

Browse files
committed
Remove superfluous comments
1 parent ca1c2ad commit 52adadd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+5
-99
lines changed

lib/all.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
'use strict';
22

3-
/* Dependencies. */
43
var one = require('./one');
54

6-
/* Expose. */
75
module.exports = all;
86

97
/* Stringify all children of `parent`. */

lib/comment.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
/* Expose. */
43
module.exports = comment;
54

65
/* Stringify a comment `node`. */

lib/doctype.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
'use strict';
22

3-
/* Expose. */
43
module.exports = doctype;
54

6-
/* Stringify a doctype `node`.
7-
*/
5+
/* Stringify a doctype `node`. */
86
function doctype(ctx, node) {
97
var pub = node.public;
108
var sys = node.system;

lib/element.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
/* Dependencies. */
43
var xtend = require('xtend');
54
var spaces = require('space-separated-tokens').stringify;
65
var commas = require('comma-separated-tokens').stringify;
@@ -10,7 +9,6 @@ var kebab = require('kebab-case');
109
var ccount = require('ccount');
1110
var all = require('./all');
1211

13-
/* Expose. */
1412
module.exports = element;
1513

1614
/* Constants. */

lib/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
'use strict';
22

3-
/* Dependencies. */
43
var voids = require('html-void-elements');
54
var omission = require('./omission');
65
var one = require('./one');
76

8-
/* Expose. */
97
module.exports = toHTML;
108

119
/* Characters. */
@@ -28,7 +26,7 @@ var FF = '\f';
2826
var NAME = [AMP, SPACE, TAB, LF, CR, FF, SO, GT, EQ];
2927
var CLEAN_NAME = NAME.concat(NULL, DQ, SQ, LT);
3028

31-
/* In save mode, all attribute values contain DQ (`"`),
29+
/* In safe mode, all attribute values contain DQ (`"`),
3230
* SQ (`'`), and GR (`` ` ``), as those can create XSS
3331
* issues in older browsers:
3432
* - https://html5sec.org/#59

lib/omission/closing.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
'use strict';
22

3-
/* Dependencies. */
43
var is = require('unist-util-is');
54
var element = require('hast-util-is-element');
65
var whiteSpaceLeft = require('./util/white-space-left');
76
var after = require('./util/siblings').after;
87
var omission = require('./omission');
98

10-
/* Construct. */
119
module.exports = omission({
1210
html: html,
1311
head: headOrColgroupOrCaption,
@@ -133,7 +131,7 @@ function tr(node, index, parent) {
133131
return !next || element(next, 'tr');
134132
}
135133

136-
/* Whether to omit `</td>` or `th`. */
134+
/* Whether to omit `</td>` or `</th>`. */
137135
function cells(node, index, parent) {
138136
var next = after(parent, index);
139137
return !next || element(next, ['td', 'th']);

lib/omission/omission.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
/* Expose. */
43
module.exports = omission;
54

65
var own = {}.hasOwnProperty;

lib/omission/opening.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
/* Dependencies. */
43
var is = require('unist-util-is');
54
var element = require('hast-util-is-element');
65
var before = require('./util/siblings').before;
@@ -12,7 +11,6 @@ var omission = require('./omission');
1211

1312
var own = {}.hasOwnProperty;
1413

15-
/* Construct. */
1614
module.exports = omission({
1715
html: html,
1816
head: head,
@@ -27,7 +25,7 @@ function html(node) {
2725
return !head || !is('comment', head);
2826
}
2927

30-
/* Omit `<head>`. */
28+
/* Whether to omit `<head>`. */
3129
function head(node) {
3230
var children = node.children;
3331
var length = children.length;

lib/omission/util/first.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
'use strict';
22

3-
/* Dependencies. */
43
var after = require('./siblings').after;
54

6-
/* Expose. */
75
module.exports = first;
86

97
/* Get the first child in `parent`. */

lib/omission/util/place.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
/* Expose. */
43
module.exports = place;
54

65
/* Get the position of `node` in `parent`. */

0 commit comments

Comments
 (0)