From: Martin Quinson Date: Sun, 19 Jul 2015 16:14:46 +0000 (+0200) Subject: inline a static function called only once X-Git-Tag: v3_12~476 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/eb9610fbdbfac640b40d9860ef98dfaa7aab6f55?hp=b2e8bfef61c654a68c6e141f4a0c0a9903fe2048 inline a static function called only once --- diff --git a/src/surf/cpu_cas01.cpp b/src/surf/cpu_cas01.cpp index 976b54a97b..564d49bc63 100644 --- a/src/surf/cpu_cas01.cpp +++ b/src/surf/cpu_cas01.cpp @@ -12,16 +12,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_cpu_cas, surf_cpu, "Logging specific to the SURF CPU IMPROVED module"); -/************* - * CallBacks * - *************/ - -static void cpu_define_callbacks() -{ - sg_platf_host_add_cb(cpu_parse_init); - sg_platf_postparse_add_cb(cpu_add_traces); -} - /********* * Model * *********/ @@ -40,7 +30,9 @@ void surf_cpu_model_init_Cas01() surf_cpu_model_pm = new CpuCas01Model(); surf_cpu_model_vm = new CpuCas01Model(); - cpu_define_callbacks(); + sg_platf_host_add_cb(cpu_parse_init); + sg_platf_postparse_add_cb(cpu_add_traces); + ModelPtr model_pm = surf_cpu_model_pm; ModelPtr model_vm = surf_cpu_model_vm; xbt_dynar_push(model_list, &model_pm);