Closed Bug 1425185 Opened 7 years ago Closed 3 years ago

Remove dead code from nsDeviceContextSpecGTK::MakePrintTarget

Categories

(Core :: Printing: Setup, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: jwatt, Assigned: jwatt)

Details

Attachments

(1 file)

nsDeviceContextSpecGTK::MakePrintTarget calls nsPrintSettingsGTK::GetOutputFormat then checks whether it returns nsIPrintSettings::kOutputFormatNative. That can't happen since nsPrintSettingsGTK::GetOutputFormat converts kOutputFormatNative to kOutputFormatPS or kOutputFormatPDF.
Attached patch patchSplinter Review
Attachment #8936741 - Flags: review?(bobowencode)
(In reply to Jonathan Watt [:jwatt] (needinfo? me) from comment #0) > That can't happen since > nsPrintSettingsGTK::GetOutputFormat converts kOutputFormatNative to > kOutputFormatPS or kOutputFormatPDF. That's not true. The last branch is an 'if-else', not 'if';
Attachment #8936741 - Flags: review?(bobowencode)
Priority: -- → P1
Priority: P1 → P3

I fixed this in bug 1322756.

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

Attachment

General

Created:
Updated:
Size: