Skip to content

Commit

Permalink
refactor(fe): delete unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
strager committed Jan 9, 2024
1 parent 485faa1 commit d8b4dd2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions src/quick-lint-js/fe/linter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@
#include <quick-lint-js/port/unreachable.h>

namespace quick_lint_js {
bool operator==(Linter_Options lhs, Linter_Options rhs) {
return lhs.language == rhs.language &&
lhs.print_parser_visits == rhs.print_parser_visits;
}

bool operator!=(Linter_Options lhs, Linter_Options rhs) {
return !(lhs == rhs);
}

void parse_and_lint(Padded_String_View code, Diag_Reporter& reporter,
const Global_Declared_Variable_Set& globals,
Linter_Options options) {
Expand Down
3 changes: 0 additions & 3 deletions src/quick-lint-js/fe/linter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ struct Linter_Options {

// If true, print a human-readable representation of parser visits to stderr.
bool print_parser_visits = false;

friend bool operator==(Linter_Options, Linter_Options);
friend bool operator!=(Linter_Options, Linter_Options);
};

void parse_and_lint(Padded_String_View code, Diag_Reporter&,
Expand Down

0 comments on commit d8b4dd2

Please sign in to comment.