[simple-scan] Remove class PsWriter



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]