[rygel] core: Remove redundant return statement
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Remove redundant return statement
- Date: Tue, 10 Aug 2010 13:59:20 +0000 (UTC)
commit f254497254d254e9650a5528f59ec2e8a77b9f0e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Aug 9 16:52:43 2010 +0300
core: Remove redundant return statement
A call to GLib.error is fatal so any code after it will never be reached.
src/rygel/rygel-main.vala | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-main.vala b/src/rygel/rygel-main.vala
index baef63e..f41b5c2 100644
--- a/src/rygel/rygel-main.vala
+++ b/src/rygel/rygel-main.vala
@@ -226,8 +226,6 @@ public class Rygel.Main : Object {
return 0;
} catch (GLib.Error err) {
error ("%s", err.message);
-
- return -1;
}
int exit_code = main.run ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]