summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-17 06:48:03 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-17 06:48:03 +0000
commit0c81ba665bab0e37ff9b82fdfd71d136044d5c96 (patch)
tree5a21c9c4a037864ea99a1f27fb0225ce446d9634 /printing
parent161edaf25848c8a50d943ee6e7b862d2b3a6d18f (diff)
downloadchromium_src-0c81ba665bab0e37ff9b82fdfd71d136044d5c96.zip
chromium_src-0c81ba665bab0e37ff9b82fdfd71d136044d5c96.tar.gz
chromium_src-0c81ba665bab0e37ff9b82fdfd71d136044d5c96.tar.bz2
Cleanup: Remove unused PrintedDocument::RenderPrintedPageNumber().
BUG=none TEST=none Review URL: http://codereview.chromium.org/5948002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69522 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-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.