Remove {get,set}_{string,bool,int} methods.
authorHuang Peng <shawn.p.huang@gmail.com>
Wed, 30 Jul 2008 02:27:49 +0000 (10:27 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Wed, 30 Jul 2008 02:27:49 +0000 (10:27 +0800)
daemon/bus.py
daemon/config.py

index 6095e74..d0edd2b 100644 (file)
@@ -317,27 +317,9 @@ class IBus(ibus.Object):
     def config_set_value(self, key, value, dbusconn, **kargs):
         self.__config.set_value(key, value, **kargs)
 
-    def config_set_string(self, key, value, dbusconn, **kargs):
-        self.__config.set_string(key, value, **kargs)
-
-    def config_set_int(self, key, value, dbusconn, **kargs):
-        self.__config.set_int(key, value, **kargs)
-
-    def config_set_bool(self, key, value, dbusconn, **kargs):
-        self.__config.set_bool(key, value, **kargs)
-
     def config_get_value(self, key, dbusconn, **kargs):
         self.__config.get_value(key, **kargs)
 
-    def config_get_string(self, key, dbusconn, **kargs):
-        self.__config.get_string(key, **kargs)
-
-    def config_get_int(self, key, dbusconn, **kargs):
-        self.__config.get_int(key, **kargs)
-
-    def config_get_bool(self, key, dbusconn, **kargs):
-        self.__config.get_bool(key, **kargs)
-
     def config_add_watch_dir(self, dir, conn, **kargs):
         if not dir.endswith("/"):
             dir += "/"
@@ -478,41 +460,11 @@ class IBusProxy(ibus.IIBus):
                 reply_handler = reply_cb,
                 error_handler = error_cb)
 
-    def ConfigSetString(self, key, value, dbusconn, reply_cb, error_cb):
-        self.__ibus.config_set_string(key, value, self.__conn,
-                reply_handler = reply_cb,
-                error_handler = error_cb)
-
-    def ConfigSetInt(self, key, value, dbusconn, reply_cb, error_cb):
-        self.__ibus.config_set_int(key, value, self.__conn,
-                reply_handler = reply_cb,
-                error_handler = error_cb)
-
-    def ConfigSetBool(self, key, value, dbusconn, reply_cb, error_cb):
-        self.__ibus.config_set_bool(key, value, self.__conn,
-                reply_handler = reply_cb,
-                error_handler = error_cb)
-
     def ConfigGetValue(self, key, dbusconn, reply_cb, error_cb):
         self.__ibus.config_get_value(key, self.__conn,
                 reply_handler = reply_cb,
                 error_handler = error_cb)
 
-    def ConfigGetString(self, key, dbusconn, reply_cb, error_cb):
-        self.__ibus.config_get_string(key, self.__conn,
-                reply_handler = reply_cb,
-                error_handler = error_cb)
-
-    def ConfigGetInt(self, key, dbusconn, reply_cb, error_cb):
-        self.__ibus.config_get_int(key, self.__conn,
-                reply_handler = reply_cb,
-                error_handler = error_cb)
-
-    def ConfigGetBool(self, key, dbusconn, reply_cb, error_cb):
-        self.__ibus.config_get_bool(key, self.__conn,
-                reply_handler = reply_cb,
-                error_handler = error_cb)
-
     def RegisterListEngines(self, dbusconn):
         return self.__ibus.register_list_engines(self.__conn)
 
index f646b83..bce5119 100644 (file)
@@ -46,24 +46,6 @@ class Config(ibus.Object):
     def set_value(self, key, value, **kargs):
         return self.__config.GetValue(key, value, **kargs)
 
-    def get_string(self, key, **kargs):
-        return self.__config.GetString(key, **kargs)
-
-    def get_int(self, key, **kargs):
-        return self.__config.GetInt(key, **kargs)
-
-    def get_bool(self, key, **kargs):
-        return self.__config.GetBool(key, **kargs)
-
-    def set_string(self, key, value, **kargs):
-        return self.__config.SetString(key, value, **kargs)
-
-    def set_int(self, key, value, **kargs):
-        return self.__config.SetInt(key, value, **kargs)
-
-    def set_bool(self, key, value, **kargs):
-        return self.__config.SetBool(key, value, **kargs)
-
     def destroy(self):
         if self.__ibusconn != None:
             self.__config.Destroy(**ibus.DEFAULT_ASYNC_HANDLERS)