summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-09-11 15:09:52 -0400
committerRyan Lortie <desrt@desrt.ca>2011-09-11 15:09:52 -0400
commit44d56d869d2236ef1d177bd1ab33d65ae23d7e2e (patch)
treee4e56f05c6238dc29af96a02cab6b3e1cd4b41eb /client
parent3ecf9aab99ff201ba66e7d7f6e79accbd6797660 (diff)
downloaddconf-44d56d869d2236ef1d177bd1ab33d65ae23d7e2e.tar.gz
Remove "service func" logic
This was required to support the case where the dconf client was unable to determine the cache directory for itself. Since we now use the XDG runtime directory, this is redundant.
Diffstat (limited to 'client')
-rw-r--r--client/dconf-client.vala13
-rw-r--r--client/engine.vapi1
2 files changed, 0 insertions, 14 deletions
diff --git a/client/dconf-client.vala b/client/dconf-client.vala
index 8c011ae..472e544 100644
--- a/client/dconf-client.vala
+++ b/client/dconf-client.vala
@@ -342,17 +342,6 @@ namespace DConf {
return true;
}
- static Variant? service_func (EngineMessage dcem) {
- try {
- assert (dcem.bus_types[0] == 'e');
- var connection = Bus.get_sync (BusType.SESSION, null);
- return connection.call_sync (dcem.bus_name, dcem.object_path, dcem.interface_name, dcem.method_name,
- dcem.parameters[0], dcem.reply_type, DBusCallFlags.NONE, -1, null);
- } catch {
- return null;
- }
- }
-
/**
* dconf_client_new:
* @profile: the dconf profile to use, or %NULL
@@ -369,8 +358,6 @@ namespace DConf {
* ~/.config/dconf/user.
**/
public Client (string? profile = null, owned WatchFunc? watch_func = null) {
- Engine.set_service_func (service_func);
-
engine = new Engine (profile);
this.watch_func = watch_func;
}
diff --git a/client/engine.vapi b/client/engine.vapi
index 8ed9c92..d90063c 100644
--- a/client/engine.vapi
+++ b/client/engine.vapi
@@ -11,7 +11,6 @@ namespace DConf {
internal GLib.Variant? read_no_default (string key);
internal EngineMessage set_locked (string key, bool locked);
internal string[] list (string dir, void*junk = null);
- internal static void set_service_func (ServiceFunc func);
internal EngineMessage watch (string name);
internal EngineMessage unwatch (string name);
}