[simple-scan] Remove class PsWriter
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan] Remove class PsWriter
- Date: Mon, 22 May 2017 01:55:32 +0000 (UTC)
commit 5445a8cbe230885557fd0a03376142f3ac24b6f0
Author: Stéphane Fillion <stphanef3724 gmail com>
Date: Wed May 17 20:36:09 2017 -0400
Remove class PsWriter
src/book.vala | 27 ---------------------------
1 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/src/book.vala b/src/book.vala
index 8edb9d8..a6d1b04 100644
--- a/src/book.vala
+++ b/src/book.vala
@@ -621,30 +621,3 @@ private class PDFWriter
object_offsets[index - 1] = (uint)offset;
}
}
-
-public class PsWriter
-{
- public Cairo.PsSurface surface;
- public FileOutputStream stream;
-
- public PsWriter (FileOutputStream stream)
- {
- this.stream = stream;
- surface = new Cairo.PsSurface.for_stream (write_cairo_data, 0, 0);
- }
-
- private Cairo.Status write_cairo_data (uint8[] data)
- {
- try
- {
- stream.write_all (data, null, null);
- }
- catch (Error e)
- {
- warning ("Error writing data: %s", e.message);
- return Cairo.Status.WRITE_ERROR;
- }
-
- return Cairo.Status.SUCCESS;
- }
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]