[tracker] libtracker-sparql-backend: Drop unnecessary connection variable
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-sparql-backend: Drop unnecessary connection variable
- Date: Tue, 7 Jun 2011 14:06:58 +0000 (UTC)
commit 1b4819b316963283867c59cf55dc6530ad88dbe3
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]