summaryrefslogtreecommitdiff
path: root/src/storage.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@linux.intel.com>2011-08-24 21:31:22 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-08-25 11:14:23 +0200
commitbb759b67155c1d4c46fd8c3244cf3e0554ede018 (patch)
treef5c55746d76f40e7e6916510c6fe7d60ce31b4ec /src/storage.c
parentc5d6d86b2fe8a7e173aa0cd6938caf277d4fd9a9 (diff)
downloadconnman-bb759b67155c1d4c46fd8c3244cf3e0554ede018.tar.gz
connman-bb759b67155c1d4c46fd8c3244cf3e0554ede018.tar.bz2
connman-bb759b67155c1d4c46fd8c3244cf3e0554ede018.zip
device: Remove device persistent code
Connman now stores technology states persistently. Hence there is no reason to store device states persistently.
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/storage.c b/src/storage.c
index 274997b5..53ba237b 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -271,42 +271,6 @@ int __connman_storage_save_service(struct connman_service *service)
return -ENOENT;
}
-int __connman_storage_load_device(struct connman_device *device)
-{
- GSList *list;
-
- DBG("device %p", device);
-
- for (list = storage_list; list; list = list->next) {
- struct connman_storage *storage = list->data;
-
- if (storage->device_load) {
- if (storage->device_load(device) == 0)
- return 0;
- }
- }
-
- return -ENOENT;
-}
-
-int __connman_storage_save_device(struct connman_device *device)
-{
- GSList *list;
-
- DBG("device %p", device);
-
- for (list = storage_list; list; list = list->next) {
- struct connman_storage *storage = list->data;
-
- if (storage->device_save) {
- if (storage->device_save(device) == 0)
- return 0;
- }
- }
-
- return -ENOENT;
-}
-
int __connman_storage_load_technology(struct connman_technology *technology)
{
GSList *list;