[tracker/tracker-0.10] libtracker-sparql-backend: Drop unnecessary connection variable
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-sparql-backend: Drop unnecessary connection variable
- Date: Thu, 9 Jun 2011 16:59:35 +0000 (UTC)
commit 3abefee5853ed8ffa20e3f0cb980dbdb077a78c1
Author: Jürg Billeter <j bitron ch>
Date: Tue Jun 7 15:52:29 2011 +0200
libtracker-sparql-backend: Drop unnecessary connection variable
src/libtracker-sparql-backend/tracker-backend.vala | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/libtracker-sparql-backend/tracker-backend.vala b/src/libtracker-sparql-backend/tracker-backend.vala
index 2fd2130..bb85cce 100644
--- a/src/libtracker-sparql-backend/tracker-backend.vala
+++ b/src/libtracker-sparql-backend/tracker-backend.vala
@@ -163,7 +163,7 @@ class Tracker.Sparql.Backend : Connection {
}
// Plugin loading functions
- private bool load_plugins () throws GLib.Error {
+ private void load_plugins () throws GLib.Error {
string env_backend = Environment.get_variable ("TRACKER_SPARQL_BACKEND");
Backend backend = Backend.AUTO;
@@ -183,8 +183,6 @@ class Tracker.Sparql.Backend : Connection {
debug ("Using backend = 'AUTO'");
}
- Tracker.Sparql.Connection connection;
-
switch (backend) {
case backend.AUTO:
try {
@@ -194,23 +192,19 @@ class Tracker.Sparql.Backend : Connection {
}
bus = new Tracker.Bus.Connection ();
-
- connection = bus;
break;
case backend.DIRECT:
- connection = direct = new Tracker.Direct.Connection ();
+ direct = new Tracker.Direct.Connection ();
break;
case backend.BUS:
- connection = bus = new Tracker.Bus.Connection ();
+ bus = new Tracker.Bus.Connection ();
break;
default:
assert_not_reached ();
}
-
- return connection != null;
}
static weak Connection? singleton;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]