[gnome-boxes] os-database: Remove redundant error declaration
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] os-database: Remove redundant error declaration
- Date: Mon, 19 Nov 2012 17:26:50 +0000 (UTC)
commit 48a5bc58f9ecfcb870cb6b63a5b3e6a0d07ce4a6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Nov 1 18:25:41 2012 +0200
os-database: Remove redundant error declaration
Also remove the redundant catching of it.
https://bugzilla.gnome.org/show_bug.cgi?id=687357
src/media-manager.vala | 6 +-----
src/os-database.vala | 2 +-
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/media-manager.vala b/src/media-manager.vala
index 7e96520..08c56ba 100644
--- a/src/media-manager.vala
+++ b/src/media-manager.vala
@@ -16,11 +16,7 @@ private class Boxes.MediaManager : Object {
public MediaManager () {
client = new GUdev.Client ({"block"});
os_db = new OSDatabase ();
- try {
- os_db.load ();
- } catch (GLib.Error error) {
- critical ("Error fetching default OS database: %s", error.message);
- }
+ os_db.load ();
try {
connection = Sparql.Connection.get ();
} catch (GLib.Error error) {
diff --git a/src/os-database.vala b/src/os-database.vala
index 52682ac..8898421 100644
--- a/src/os-database.vala
+++ b/src/os-database.vala
@@ -28,7 +28,7 @@ private class Boxes.OSDatabase {
return resources;
}
- public void load () throws GLib.Error {
+ public void load () {
var loader = new Loader ();
try {
loader.process_default_path ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]