From d6c6862b557bf1760b970203901b21c8f191d72b Mon Sep 17 00:00:00 2001
From: David Parsons <david.parsons@inria.fr>
Date: Fri, 7 Apr 2023 10:17:16 +0200
Subject: [PATCH] remove HybridFuzzy-specific code

---
 src/post_treatments/aevol_post_create_eps.cpp | 35 -------------------
 1 file changed, 35 deletions(-)

diff --git a/src/post_treatments/aevol_post_create_eps.cpp b/src/post_treatments/aevol_post_create_eps.cpp
index 54b9b6264..c51d5c16f 100644
--- a/src/post_treatments/aevol_post_create_eps.cpp
+++ b/src/post_treatments/aevol_post_create_eps.cpp
@@ -36,8 +36,6 @@
 #include <sys/stat.h>  // for the permission symbols used with mkdir
 #include <errno.h>
 
-#include "legacy/phenotype/fuzzy/HybridFuzzy.h"
-
 // =================================================================
 //                            Project Files
 // =================================================================
@@ -450,14 +448,6 @@ void draw_pos_neg_profiles(Individual* indiv, const PhenotypicTarget& target,
   if (indiv->exp_m()->exp_s()->get_fuzzy_flavor() == 0)
     for (const auto& p: ((Fuzzy*)indiv->phenotype_activ())->points())
       fprintf(drawingfile, "%lf %lf lineto\n", margin + scale * p.x, 0.5 + scale * p.y);
-  else
-    for (int i=0; i < ((HybridFuzzy*)indiv->phenotype_activ())->get_pheno_size(); i++) {
-      int xi = (int) ( i / ((HybridFuzzy*)indiv->phenotype_activ())->get_pheno_size());
-    
-      fprintf(drawingfile, "%lf %lf lineto\n", margin +
-                                               scale * xi, 0.5 + scale *
-                                               ((HybridFuzzy*) indiv->phenotype_activ())->points()[i]);
-    }
   fprintf(drawingfile, "stroke\n" );
 
   // -----------------------
@@ -471,13 +461,6 @@ void draw_pos_neg_profiles(Individual* indiv, const PhenotypicTarget& target,
   if (indiv->exp_m()->exp_s()->get_fuzzy_flavor() == 0)
     for (const auto& p: ((Fuzzy*)indiv->phenotype_inhib())->points())
       fprintf( drawingfile, "%lf %lf lineto\n", margin + scale * p.x, 0.5 + scale * p.y);
-  else
-    for (int i=0; i < ((HybridFuzzy*)indiv->phenotype_inhib())->get_pheno_size(); i++) {
-      int xi = (int) ( i / ((HybridFuzzy*)indiv->phenotype_inhib())->get_pheno_size());
-      fprintf(drawingfile, "%lf %lf lineto\n", margin +
-                                               scale * xi, 0.5 + scale *
-                                                                 ((HybridFuzzy*) indiv->phenotype_inhib())->points()[i]);
-    }
   fprintf( drawingfile, "stroke\n" );
 
   fprintf(drawingfile,"%%%%EOF\n");
@@ -588,16 +571,6 @@ void draw_phenotype(Individual* indiv, const PhenotypicTarget& target,
   if (indiv->exp_m()->exp_s()->get_fuzzy_flavor() == 0)
     for (const auto& p: ((Fuzzy*)indiv->phenotype())->points())
       fprintf(drawingfile, "%lf %lf lineto\n", margin + scale * p.x, margin + scale * p.y);
-  else {
-    for (int i=0; i < ((HybridFuzzy*)indiv->phenotype())->get_pheno_size(); i++) {
-
-      float xi =  (i / (float)
-                      ((HybridFuzzy*) indiv->phenotype())->get_pheno_size());
-      fprintf(drawingfile, "%lf %lf lineto\n", margin +
-                                               scale * xi, margin + scale *
-                                                                    ((HybridFuzzy*) indiv->phenotype())->points()[i]);
-    }
-  }
   fprintf( drawingfile, "stroke\n" );
 
 
@@ -610,14 +583,6 @@ void draw_phenotype(Individual* indiv, const PhenotypicTarget& target,
   if (indiv->exp_m()->exp_s()->get_fuzzy_flavor() == 0)
     for (const auto& p: ((Fuzzy*)target.fuzzy())->points())
       fprintf(drawingfile, "%lf %lf lineto\n", margin + scale * p.x, margin + scale * p.y);
-  else
-  for (int i=0; i < ((HybridFuzzy*)target.fuzzy())->get_pheno_size(); i++) {
-    float xi =  (i / (float)
-                         ((HybridFuzzy*)target.fuzzy())->get_pheno_size());
-    fprintf(drawingfile, "%lf %lf lineto\n", margin +
-                                             scale * xi, margin + scale *
-                                                                  ((HybridFuzzy*) target.fuzzy())->points()[i]);
-  }
   fprintf( drawingfile, "stroke\n" );
 
 
-- 
GitLab