Skip to content

Commit

Permalink
Remove unused dependency by using c++ attribute [[fallthrough]] inste…
Browse files Browse the repository at this point in the history
…ad of ABSL's macro.

PiperOrigin-RevId: 610875973
  • Loading branch information
amaltas committed Feb 27, 2024
1 parent 246302f commit fe1c511
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion validator/cpp/htmlparser/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ cc_library(
":defer",
":strings",
":token",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/flags:flag",
],
)
Expand Down
3 changes: 1 addition & 2 deletions validator/cpp/htmlparser/tokenizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <utility>
#include <vector>

#include "absl/base/attributes.h"
#include "absl/flags/flag.h"
#include "cpp/htmlparser/atom.h"
#include "cpp/htmlparser/atomutil.h"
Expand Down Expand Up @@ -761,7 +760,7 @@ void Tokenizer::ReadTagAttributeKey(bool template_mode) {
// https://html.spec.whatwg.org/multipage/parsing.html#before-attribute-name-state.
break;
}
ABSL_FALLTHROUGH_INTENDED;
[[fallthrough]];
case '>': {
UnreadByte();
std::get<0>(pending_attribute_).end = raw_.end;
Expand Down

0 comments on commit fe1c511

Please sign in to comment.