summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2016-08-26 21:29:22 +0200
committerJens Georg <mail@jensge.org>2016-08-27 16:35:49 +0200
commitb213986bcaf451937dcb0726e076140c824bfcdb (patch)
tree81542ffda51d1053a86fd50b9221a281a512ecde
parent4d1801cd29fa67e478b1369bc791b3e23be35ae8 (diff)
downloadrygel-b213986bcaf451937dcb0726e076140c824bfcdb.tar.gz
core: Remove obsolete code
Signed-off-by: Jens Georg <mail@jensge.org>
-rw-r--r--src/librygel-core/rygel-description-file.vala8
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);
}