Skip to content

Commit

Permalink
refactor: remove useless JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-michelet committed Jan 27, 2024
1 parent 23c451d commit eb8d0f8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/AstAnalyser.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ export class AstAnalyser {
}
}

/**
* @param {!string} source
* @param {object} options
* @param {boolean} [options.removeHTMLComments=false]
*/
prepareSource(source, options = {}) {
if (typeof source !== "string") {
throw new TypeError("source must be a string");
Expand All @@ -119,10 +114,6 @@ export class AstAnalyser {
this.#removeHTMLComment(rawNoShebang) : rawNoShebang;
}

/**
* @param {!string} str
* @returns {string}
*/
#removeHTMLComment(str) {
return str.replaceAll(/<!--[\s\S]*?(?:-->)/g, "");
}
Expand Down

0 comments on commit eb8d0f8

Please sign in to comment.