]> AND Public Git Repository - simgrid.git/blobdiff - src/simix/smx_global.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
less indirect calls to get_instance in examples (exec to trace)
[simgrid.git] / src / simix / smx_global.cpp
index 1904af4f66f8ff2db78616659922d2228b56d94c..ab5a52f15f190b8e6356d7bf1471b33bfe7a1ad9 100644 (file)
@@ -4,20 +4,8 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "mc/mc.h"
-#include "simgrid/kernel/Timer.hpp"
 #include "simgrid/s4u/Engine.hpp"
-#include "simgrid/s4u/Host.hpp"
-#include "src/smpi/include/smpi_actor.hpp"
-
-#include "simgrid/sg_config.hpp"
 #include "src/kernel/EngineImpl.hpp"
-#include "src/mc/mc_record.hpp"
-#include "src/mc/mc_replay.hpp"
-#include "src/surf/xml/platf.hpp"
-
-#include "simgrid/kernel/resource/Model.hpp"
-
-#include <memory>
 
 XBT_LOG_NEW_CATEGORY(simix, "All SIMIX categories");
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_kernel, simix, "Logging specific to SIMIX (kernel)");
@@ -45,25 +33,6 @@ xbt_dynar_t simix_global_get_dead_actors_addr()
 } // namespace simix
 } // namespace simgrid
 
-
-static simgrid::kernel::actor::ActorCode maestro_code;
-void SIMIX_set_maestro(void (*code)(void*), void* data)
-{
-#ifdef _WIN32
-  XBT_INFO("WARNING, SIMIX_set_maestro is believed to not work on windows. Please help us investigating this issue if "
-           "you need that feature");
-#endif
-  maestro_code = std::bind(code, data);
-}
-
-void SIMIX_global_init(int* argc, char** argv)
-{
-
-  // Either create a new context with maestro or create
-  // a context object with the current context maestro):
-  simgrid::kernel::actor::create_maestro(maestro_code);
-}
-
 /**
  * @ingroup SIMIX_API
  * @brief A clock (in second).