summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--printing/printed_document.cc9
-rw-r--r--printing/printed_document.h6
2 files changed, 0 insertions, 15 deletions
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index 0880da5..2369618 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -102,15 +102,6 @@ bool PrintedDocument::GetPage(int page_number,
return false;
}
-bool PrintedDocument::RenderPrintedPageNumber(
- int page_number, gfx::NativeDrawingContext context) {
- scoped_refptr<PrintedPage> page;
- if (!GetPage(page_number, &page))
- return false;
- RenderPrintedPage(*page.get(), context);
- return true;
-}
-
bool PrintedDocument::IsComplete() const {
AutoLock lock(lock_);
if (!mutable_.page_count_)
diff --git a/printing/printed_document.h b/printing/printed_document.h
index f42e075..c471b80 100644
--- a/printing/printed_document.h
+++ b/printing/printed_document.h
@@ -58,12 +58,6 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> {
void RenderPrintedPage(const PrintedPage& page,
gfx::NativeDrawingContext context) const;
- // Draws the page in the context. If the page is not available right now, it
- // requests to have this page be rendered and returns false.
- // Note: locks for a short amount of time.
- bool RenderPrintedPageNumber(int page_number,
- gfx::NativeDrawingContext context);
-
// Returns true if all the necessary pages for the settings are already
// rendered.
// Note: locks while parsing the whole tree.