[rygel] core: Remove obsolete code



commit b213986bcaf451937dcb0726e076140c824bfcdb
Author: Jens Georg <mail jensge org>
Date:   Fri Aug 26 21:29:22 2016 +0200

    core: Remove obsolete code
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/librygel-core/rygel-description-file.vala |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/librygel-core/rygel-description-file.vala b/src/librygel-core/rygel-description-file.vala
index c8c1959..8649daf 100644
--- a/src/librygel-core/rygel-description-file.vala
+++ b/src/librygel-core/rygel-description-file.vala
@@ -486,18 +486,12 @@ public class Rygel.DescriptionFile : Object {
      * @throws GLib.Error if anything fails while creating the XML dump.
      */
     public void save (string path) throws GLib.Error {
-        var file = FileStream.open (path, "w+");
-        var message = _("Failed to write modified description to %s");
-
-        if (unlikely (file == null)) {
-            throw new IOError.FAILED (message, path);
-        }
-
         string mem = null;
         int len = -1;
         doc.doc.dump_memory_enc (out mem, out len, "UTF-8");
 
         if (unlikely (len <= 0)) {
+            var message = _("Failed to write modified description to %s");
             throw new IOError.FAILED (message, path);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]