Closed Bug 2060649 Opened 3 days ago Closed 2 days ago

Remove unused BounceTrackingState::ShouldCreateBounceTrackingStateForBC declaration

Categories

(Core :: Privacy: Anti-Tracking, task, P3)

task

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: emz, Assigned: nirmaladvani, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=C++])

Attachments

(1 file)

BounceTrackingState::ShouldCreateBounceTrackingStateForBC is declared in
toolkit/components/antitracking/bouncetrackingprotection/BounceTrackingState.h but has no definition anywhere in the tree and no callers. A tree-wide search for the identifier returns only that one declaration.

The sibling ShouldCreateBounceTrackingStateForWebProgress is the one actually used, and is declared and defined a few lines away.

Fix: delete the declaration.

Steps

  1. Search the tree for ShouldCreateBounceTrackingStateForBC and confirm the single declaration is the only hit.
  2. Delete those lines from BounceTrackingState.h.
  3. Build with ./mach build and run ./mach test --headless toolkit/components/antitracking/bouncetrackingprotection/test to confirm nothing regressed.

This is a good first bug: self-contained, no behaviour change, and the verification is a single search plus a build.

Severity: -- → N/A
Priority: -- → P3
Whiteboard: [lang=C++]
Mentor: emz
Assignee: nobody → nirmaladvani
Status: NEW → ASSIGNED
Pushed by ezuehlcke@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/70483802e079 https://hg.mozilla.org/integration/autoland/rev/fe8a13040420 Remove unused BounceTrackingState::ShouldCreateBounceTrackingStateForBC declaration r=emz
Status: ASSIGNED → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: