From: Arnaud Giersch Date: Mon, 12 Feb 2018 21:08:11 +0000 (+0100) Subject: Kill unused private function MC_snapshot_memcmp(). X-Git-Tag: v3.19~240 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9943e496eb5e20347eac1a7a2533931327355389?hp=b3f3c5141c2232d6c08dd6b6e11a4f0b38de8137 Kill unused private function MC_snapshot_memcmp(). --- diff --git a/src/mc/mc_snapshot.cpp b/src/mc/mc_snapshot.cpp index 69a2a5be70..7823e430a6 100644 --- a/src/mc/mc_snapshot.cpp +++ b/src/mc/mc_snapshot.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2017. The SimGrid Team. +/* Copyright (c) 2014-2018. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -139,23 +139,6 @@ int MC_snapshot_region_memcmp( return res; } -/** Compare memory between snapshots - * - * @param addr1 Address in the first snapshot - * @param snapshot1 First snapshot - * @param addr2 Address in the second snapshot - * @param snapshot2 Second snapshot - * @return same as memcmp - * */ -int MC_snapshot_memcmp( - const void* addr1, simgrid::mc::Snapshot* snapshot1, - const void* addr2, simgrid::mc::Snapshot* snapshot2, int process_index, size_t size) -{ - mc_mem_region_t region1 = mc_get_snapshot_region(addr1, snapshot1, process_index); - mc_mem_region_t region2 = mc_get_snapshot_region(addr2, snapshot2, process_index); - return MC_snapshot_region_memcmp(addr1, region1, addr2, region2, size); -} - } // extern "C" namespace simgrid { diff --git a/src/mc/mc_snapshot.hpp b/src/mc/mc_snapshot.hpp index 12325d10d2..d8d3b0ccfb 100644 --- a/src/mc/mc_snapshot.hpp +++ b/src/mc/mc_snapshot.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2018. 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. */ @@ -162,8 +162,6 @@ const void* MC_region_read_fragmented(mc_mem_region_t region, void* target, cons int MC_snapshot_region_memcmp(const void* addr1, mc_mem_region_t region1, const void* addr2, mc_mem_region_t region2, std::size_t size); -XBT_PRIVATE int MC_snapshot_memcmp(const void* addr1, simgrid::mc::Snapshot* snapshot1, const void* addr2, - simgrid::mc::Snapshot* snapshot2, int process_index, std::size_t size); static XBT_ALWAYS_INLINE const void* mc_snapshot_get_heap_end(simgrid::mc::Snapshot* snapshot) {