From: Arnaud Giersch Date: Sat, 28 Oct 2017 16:39:31 +0000 (+0200) Subject: Sonar: remove unused private fields. X-Git-Tag: v3.18~358 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc9e5a9d4e0553d474c3ee94d82144d2b56dbb0e?hp=ef00a3480208e92909f444e490c5ca3559eff5aa Sonar: remove unused private fields. --- diff --git a/src/mc/remote/Client.hpp b/src/mc/remote/Client.hpp index 7770b65324..05a395aab4 100644 --- a/src/mc/remote/Client.hpp +++ b/src/mc/remote/Client.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2015. The SimGrid Team. +/* Copyright (c) 2015-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -28,13 +28,12 @@ namespace mc { */ class XBT_PUBLIC() Client { private: - bool active_ = false; Channel channel_; static std::unique_ptr instance_; public: Client(); - explicit Client(int fd) : active_(true), channel_(fd) {} + explicit Client(int fd) : channel_(fd) {} void handleMessages(); private: diff --git a/src/smpi/include/smpi_topo.hpp b/src/smpi/include/smpi_topo.hpp index c8f0caf3d1..9dd874258c 100644 --- a/src/smpi/include/smpi_topo.hpp +++ b/src/smpi/include/smpi_topo.hpp @@ -48,7 +48,6 @@ class Topo_Cart: public Topo { class Topo_Graph: public Topo { private: int nnodes_; - int nedges_; int *index_; int *edges_; public: @@ -58,13 +57,10 @@ class Topo_Graph: public Topo { class Topo_Dist_Graph: public Topo { private: - int indegree_; int *in_; int *in_weights_; - int outdegree_; int *out_; int *out_weights_; - int is_weighted_; public: Topo_Dist_Graph(); ~Topo_Dist_Graph();