Skip to content

Commit

Permalink
refactor(diag): delete unused Diag_List_Diag_Reporter class
Browse files Browse the repository at this point in the history
  • Loading branch information
strager committed Sep 20, 2024
1 parent 1d43b16 commit de12486
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 97 deletions.
2 changes: 0 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,6 @@ quick_lint_js_add_library(
quick-lint-js/debug/mongoose.h
quick-lint-js/diag/diag-code-list.cpp
quick-lint-js/diag/diag-code-list.h
quick-lint-js/diag/diag-list-diag-reporter.cpp
quick-lint-js/diag/diag-list-diag-reporter.h
quick-lint-js/diag/diag-list.cpp
quick-lint-js/diag/diag-list.h
quick-lint-js/diag/diag-reporter.cpp
Expand Down
45 changes: 0 additions & 45 deletions src/quick-lint-js/diag/diag-list-diag-reporter.cpp

This file was deleted.

45 changes: 0 additions & 45 deletions src/quick-lint-js/diag/diag-list-diag-reporter.h

This file was deleted.

4 changes: 0 additions & 4 deletions src/quick-lint-js/diag/diag-list.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#include <quick-lint-js/port/memory-resource.h>

namespace quick_lint_js {
class Diag_List_Diag_Reporter;

// Internally, Diag_List is implemented as a singly linked list.
class Diag_List {
public:
Expand Down Expand Up @@ -86,8 +84,6 @@ class Diag_List {
Memory_Resource *memory_;
Node_Base *first_ = nullptr;
Node_Base *last_ = nullptr;

friend class Diag_List_Diag_Reporter;
};

std::ostream &operator<<(std::ostream &, const Diag_List &);
Expand Down
2 changes: 1 addition & 1 deletion src/quick-lint-js/fe/lex.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <quick-lint-js/container/monotonic-allocator.h>
#include <quick-lint-js/container/optional.h>
#include <quick-lint-js/container/padded-string.h>
#include <quick-lint-js/diag/diag-list-diag-reporter.h>
#include <quick-lint-js/diag/diag-list.h>
#include <quick-lint-js/fe/identifier.h>
#include <quick-lint-js/fe/source-code-span.h>
#include <quick-lint-js/fe/token.h>
Expand Down

0 comments on commit de12486

Please sign in to comment.