Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill dead code
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 30 Apr 2017 20:21:39 +0000 (22:21 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 30 Apr 2017 20:21:39 +0000 (22:21 +0200)
include/simgrid/s4u/host.hpp
src/smpi/smpi_datatype.cpp

index 463043e..189031a 100644 (file)
@@ -136,37 +136,8 @@ extern int USER_HOST_LEVEL;
 #endif /* SIMGRID_S4U_HOST_HPP */
 
 #if 0
-/* Bindings to the MSG hosts */
-
-/* Copyright (c) 2006-2014. The SimGrid Team.
- * All rights reserved.                                                     */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-package org.simgrid.msg;
 
 public class Host {
-  /**
-   * This static method returns all of the hosts of the installed platform.
-   *
-   * @return      An array containing all the hosts installed.
-   *
-   */ 
-  public native static Host[] all();
-
-  /** 
-   * This static method sets a mailbox to receive in asynchronous mode.
-   * 
-   * All messages sent to this mailbox will be transferred to 
-   * the receiver without waiting for the receive call. 
-   * The receive call will still be necessary to use the received data.
-   * If there is a need to receive some messages asynchronously, and some not, 
-   * two different mailboxes should be used.
-   *
-   * @param mailboxName The name of the mailbox
-   */
-  public static native void setAsyncMailbox(String mailboxName);
 
   /**
    * This method returns the number of tasks currently running on a host.
@@ -177,11 +148,5 @@ public class Host {
   public native int getLoad();
 
 
-  /** This methods returns the list of storages attached to an host
-   * @return An array containing all storages (name) attached to the host
-   */
-  public native String[] getAttachedStorage();
-
-
 } 
 #endif
index 2a774f3..6dfe3bd 100644 (file)
@@ -272,13 +272,6 @@ int Datatype::copy(void *sendbuf, int sendcount, MPI_Datatype sendtype,
   int count;
 
 // FIXME Handle the case of a partial shared malloc.
-#if 0
-  if(smpi_is_shared(sendbuf)){
-    XBT_DEBUG("Copy input buf %p is shared. Let's ignore it.", sendbuf);
-  }else if(smpi_is_shared(recvbuf)){
-    XBT_DEBUG("Copy output buf %p is shared. Let's ignore it.", recvbuf);
-  }
-#endif
 
   if(smpi_privatize_global_variables == SMPI_PRIVATIZE_MMAP){
     smpi_switch_data_segment(smpi_process()->index());