Closed Bug 1669822 Opened 5 years ago Closed 5 years ago

Get rid of no-op methods nsIDeviceContextSpec::BeginPage and EndPage

Categories

(Core :: Printing: Output, task)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: dholbert, Unassigned)

Details

All of the implementations of nsIDeviceContextSpec::BeginPage and ::EndPage are empty; they just immediately return NS_OK.

https://searchfox.org/mozilla-central/search?q=NS_IMETHOD+BeginPage%28%29+override&path=
https://searchfox.org/mozilla-central/search?q=NS_IMETHOD+EndPage%28%29+override&path=

Let's remove these APIs to simplify things a bit.

Oh, my searchfox searches were incomplete -- I was searching for NS_IMETHOD BeginPage() override but there's one impl that's tagged as final instead of override, and it actually does something:
https://searchfox.org/mozilla-central/rev/f82d5c549f046cb64ce5602bfd894b7ae807c8f8/widget/nsDeviceContextSpecProxy.h#51
https://searchfox.org/mozilla-central/rev/f82d5c549f046cb64ce5602bfd894b7ae807c8f8/widget/nsDeviceContextSpecProxy.cpp#169

I guess it's not as obvious that this can be removed, given that implementation.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.