From 850f95301f96109093c438def7238f07c6ae7d7e Mon Sep 17 00:00:00 2001 From: navarro Date: Tue, 19 Jun 2012 12:17:16 +0200 Subject: [PATCH 1/1] Fix compilation warning for unused variables Remove unused part of code --- src/surf/storage.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/surf/storage.c b/src/surf/storage.c index d33e0f5810..85fdb6d126 100644 --- a/src/surf/storage.c +++ b/src/surf/storage.c @@ -54,11 +54,6 @@ static surf_action_t storage_action_stat(void *storage, surf_file_t stream) static surf_action_t storage_action_open(void *storage, const char* mount, const char* path, const char* mode) { XBT_DEBUG("\tOpen file '%s'",path); - char *storage_type_id = xbt_lib_get_or_null( - storage_lib, - ((storage_t)storage)->generic_resource.name, - ROUTING_STORAGE_LEVEL); - storage_type_t storage_type = xbt_lib_get_or_null(storage_type_lib, storage_type_id,ROUTING_STORAGE_TYPE_LEVEL); xbt_dict_t content_dict = ((storage_t)storage)->content; surf_stat_t content = xbt_dict_get(content_dict,path); -- 2.20.1