diff options
author | Jens Georg <mail@jensge.org> | 2016-08-26 21:29:22 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2016-08-27 16:35:49 +0200 |
commit | b213986bcaf451937dcb0726e076140c824bfcdb (patch) | |
tree | 81542ffda51d1053a86fd50b9221a281a512ecde | |
parent | 4d1801cd29fa67e478b1369bc791b3e23be35ae8 (diff) | |
download | rygel-b213986bcaf451937dcb0726e076140c824bfcdb.tar.gz |
core: Remove obsolete code
Signed-off-by: Jens Georg <mail@jensge.org>
-rw-r--r-- | 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 c8c19593..8649dafe 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); } |