From 5ec2c4aaff21b2621c1eb76ce05bdb13d13f2547 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Thu, 16 Mar 2023 15:46:16 +0100
Subject: [PATCH] cmaes: remove broken local isoctave() function

---
 matlab/optimization/cmaes.m | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/matlab/optimization/cmaes.m b/matlab/optimization/cmaes.m
index daa3c18251..dd50c89556 100644
--- a/matlab/optimization/cmaes.m
+++ b/matlab/optimization/cmaes.m
@@ -158,7 +158,7 @@ function [xmin, ...      % minimum search point of last iteration
                             %
 
 % Copyright © 2001-2012 Nikolaus Hansen,
-% Copyright © 2012-2017 Dynare Team
+% Copyright © 2012-2023 Dynare Team
 %
 % This file is part of Dynare.
 %
@@ -1940,16 +1940,6 @@ else % evaluation string s
 end
 
 
-% ---------------------------------------------------------------
-% ---------------------------------------------------------------
-function res = isoctave
-% any hack to find out whether we are running octave
-s = version;
-res = 0;
-if exist('fflush', 'builtin') && eval(s(1)) < 7
-    res = 1;
-end
-
 % ---------------------------------------------------------------
 % ---------------------------------------------------------------
 function flush
-- 
GitLab