From f9edf702121cefba1e48ee65daa55cf06334df5e Mon Sep 17 00:00:00 2001
From: David Parsons <david.parsons@inria.fr>
Date: Thu, 21 Sep 2023 10:45:32 +0200
Subject: [PATCH] remove stale fn DnaFactory::stats()

---
 src/libaevol/7/DnaFactory.h | 42 -------------------------------------
 1 file changed, 42 deletions(-)

diff --git a/src/libaevol/7/DnaFactory.h b/src/libaevol/7/DnaFactory.h
index 622608274..9aa16d449 100644
--- a/src/libaevol/7/DnaFactory.h
+++ b/src/libaevol/7/DnaFactory.h
@@ -74,48 +74,6 @@ namespace aevol {
 
         void init(int init_size, int pop_size = -1);
 
-        void stats() {
-            size_t total_length_ = 0;
-            size_t* a_total_length_ = new size_t[local_list_unused_dna_.size()];
-            int32_t nb_dna = 0;
-            for (std::list<Dna_7 *>::iterator it_dna = list_unused_dna_.begin();
-                 it_dna != list_unused_dna_.end(); it_dna++) {
-                total_length_ += (*it_dna)->nb_block() * BLOCK_SIZE * sizeof(char);
-                nb_dna++;
-            }
-
-            for (size_t j = 0; j < local_list_unused_dna_.size(); j++) { 
-                a_total_length_[j] = 0;
-                for (std::list<Dna_7 *>::iterator it_dna = local_list_unused_dna_[j].begin();
-                    it_dna != local_list_unused_dna_[j].end(); it_dna++) {
-                    total_length_ += (*it_dna)->nb_block() * BLOCK_SIZE * sizeof(char);
-                    a_total_length_[j]+= (*it_dna)->nb_block() * BLOCK_SIZE * sizeof(char);
-                    nb_dna++;
-                }
-                
-                a_total_length_[j] /= 1000000;
-            }
-
-            total_length_ /= 1000000;
-            printf("DNA_FACTORY_STATS --  Number of DNAs %d - Combined size %zu Mb (%zu):: ",
-                //    local_empty,empty_global,
-                //    free_local,free_space_local,free_global,
-                   nb_dna, total_length_,local_list_unused_dna_.size());
-            for (size_t j = 0; j < local_list_unused_dna_.size(); j++) { 
-                printf("%zu ",a_total_length_[j]);
-            }
-
-            printf("\n");
-            // empty_global = 0;
-            // local_empty = 0;
-
-            // free_space_local = 0;
-            // free_local = 0;
-            // free_global = 0;
-
-            delete [] a_total_length_;
-        }
-
         Dna_7 *get_dna(int request_size);
 
         void give_back(Dna_7 *dna);
-- 
GitLab