Commit 83572f22 authored by vitalybuka's avatar vitalybuka Committed by Commit bot

Remove unused code

Review URL: https://codereview.chromium.org/932543003

Cr-Commit-Position: refs/heads/master@{#317629}
parent f7b6773a
......@@ -20,7 +20,6 @@ const float kCloudPrintMarginInch = 0.25;
PrintingContext::PrintingContext(Delegate* delegate)
: delegate_(delegate),
dialog_box_dismissed_(false),
in_print_job_(false),
abort_printing_(false) {
CHECK(delegate_);
......@@ -40,7 +39,6 @@ void PrintingContext::ResetSettings() {
settings_.Clear();
in_print_job_ = false;
dialog_box_dismissed_ = false;
abort_printing_ = false;
}
......
......@@ -139,9 +139,6 @@ class PRINTING_EXPORT PrintingContext {
// Printing context delegate.
Delegate* delegate_;
// The dialog box has been dismissed.
volatile bool dialog_box_dismissed_;
// Is a print job being done.
volatile bool in_print_job_;
......
......@@ -13,7 +13,7 @@
namespace printing {
PrintingContextSytemDialogWin::PrintingContextSytemDialogWin(Delegate* delegate)
: PrintingContextWin(delegate), dialog_box_(NULL) {
: PrintingContextWin(delegate) {
}
PrintingContextSytemDialogWin::~PrintingContextSytemDialogWin() {
......@@ -25,7 +25,6 @@ void PrintingContextSytemDialogWin::AskUserForSettings(
bool is_scripted,
const PrintSettingsCallback& callback) {
DCHECK(!in_print_job_);
dialog_box_dismissed_ = false;
HWND window = GetRootWindow(delegate_->GetParentView());
DCHECK(window);
......@@ -76,14 +75,6 @@ void PrintingContextSytemDialogWin::AskUserForSettings(
callback.Run(ParseDialogResultEx(dialog_options));
}
void PrintingContextSytemDialogWin::Cancel() {
PrintingContextWin::Cancel();
if (dialog_box_) {
DestroyWindow(dialog_box_);
dialog_box_dismissed_ = true;
}
}
HRESULT PrintingContextSytemDialogWin::ShowPrintDialog(PRINTDLGEX* options) {
// Runs always on the UI thread.
static bool is_dialog_shown = false;
......
......@@ -27,7 +27,6 @@ class PRINTING_EXPORT PrintingContextSytemDialogWin
bool has_selection,
bool is_scripted,
const PrintSettingsCallback& callback) override;
virtual void Cancel() override;
private:
friend class MockPrintingContextWin;
......@@ -46,9 +45,6 @@ class PRINTING_EXPORT PrintingContextSytemDialogWin
Result ParseDialogResultEx(const PRINTDLGEX& dialog_options);
Result ParseDialogResult(const PRINTDLG& dialog_options);
// The dialog box for the time it is shown.
volatile HWND dialog_box_;
DISALLOW_COPY_AND_ASSIGN(PrintingContextSytemDialogWin);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment