diff --git a/src/comments.js b/src/comments.js index 82653441b..3d52f127c 100644 --- a/src/comments.js +++ b/src/comments.js @@ -926,7 +926,6 @@ function printDanglingComments(path, options, sameIndent) { function printComments(path, print, options, needsSemi) { const value = path.getValue(); - const parent = path.getParentNode(); const printed = print(path); const comments = value && value.comments;