From b4f9f0fe4c034a0c9ae27cce0a0681ab6f69e4a1 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Fri, 30 Aug 2019 11:17:44 +0200
Subject: [PATCH] remove unused method

---
 src/@report_data/printData.m   | 48 ----------------------------------
 src/@report_data/report_data.m |  3 ---
 2 files changed, 51 deletions(-)
 delete mode 100644 src/@report_data/printData.m

diff --git a/src/@report_data/printData.m b/src/@report_data/printData.m
deleted file mode 100644
index f77c9bb..0000000
--- a/src/@report_data/printData.m
+++ /dev/null
@@ -1,48 +0,0 @@
-function printData(o, fid, data, precision)
-%function printData(o, fid, dser, precision)
-% function to print a row of data, contained in data
-%
-% INPUTS
-%   fid          [int]              file id
-%   data         [string]           value to be printed
-%   dates        [dates]            dates for report_series slice
-%   precision    [float]            precision with which to print the data
-%
-%
-% OUTPUTS
-%   o            [report_series]    report_series object
-%
-% SPECIAL REQUIREMENTS
-%   none
-
-% Copyright (C) 2019 Dynare Team
-%
-% This file is part of Dynare.
-%
-% Dynare is free software: you can redistribute it and/or modify
-% it under the terms of the GNU General Public License as published by
-% the Free Software Foundation, either version 3 of the License, or
-% (at your option) any later version.
-%
-% Dynare is distributed in the hope that it will be useful,
-% but WITHOUT ANY WARRANTY; without even the implied warranty of
-% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-% GNU General Public License for more details.
-%
-% You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
-
-dataString = sprintf('%%.%df', precision);
-precision  = 10^precision;
-data = setDataToZeroFromZeroTol(o, data);
-for i=1:size(data,1)
-    fprintf(fid, '&');
-    % Use round half away from zero rounding
-    output = round(data(i)*precision)/precision;
-    if isnan(output)
-        fprintf(fid, '%s', o.tableNaNSymb);
-    else
-        fprintf(fid, dataString, output);
-    end
-end
-end
diff --git a/src/@report_data/report_data.m b/src/@report_data/report_data.m
index 622d418..af0e3d8 100644
--- a/src/@report_data/report_data.m
+++ b/src/@report_data/report_data.m
@@ -74,7 +74,4 @@ classdef report_data < handle
     methods (Access = ?report_table, Hidden = true)
         writeDataForTable(o, fid, precision)
     end
-    methods (Access = private)
-        printData(o, fid, data, precision)
-    end
 end
-- 
GitLab