Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
The << operator wasn't needed for NavigationType because it's not an
enum class. #if-ed out the code but didn't delete it.

Change-Id: I45211858cb703b22a314ad11c6792a952fede896
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2239432
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Fergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777210}
  • Loading branch information
fergald authored and Commit Bot committed Jun 11, 2020
1 parent 5dbb05a commit dedfe6a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions content/browser/frame_host/navigation_request.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4741,14 +4741,6 @@ const CrossOriginOpenerPolicyStatus& NavigationRequest::coop_status() const {
return coop_status_;
}

#if 0 && DCHECK_IS_ON()
// The DCHECK needs to be able to output values when it triggers.
std::ostream& operator<<(std::ostream& o,
const NavigationRequest::NavigationState& s) {
return o << static_cast<int>(s);
}
#endif // DCHECK_IS_ON()

void NavigationRequest::CheckStateTransition(NavigationState state) const {
#if DCHECK_IS_ON()
static const base::NoDestructor<StateTransitions<NavigationState>>
Expand Down

0 comments on commit dedfe6a

Please sign in to comment.