From b8e3c5fecf6bc391c4829df63fbce063b07ad464 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Wed, 23 Oct 2019 17:24:51 +0200
Subject: [PATCH] remove meta class access specifiers as they are not supported
 in MATLAB < R2012a

Revert when minimum supported Matlab version >= R2012a
---
 src/@graph/graph.m                 | 2 +-
 src/@page/page.m                   | 4 ++--
 src/@paragraph/paragraph.m         | 2 +-
 src/@report_data/report_data.m     | 2 +-
 src/@report_series/report_series.m | 6 +++---
 src/@report_table/report_table.m   | 4 ++--
 src/@section/section.m             | 4 ++--
 src/@vspace/vspace.m               | 4 ++--
 8 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/@graph/graph.m b/src/@graph/graph.m
index 4fd6dc9..01e163b 100644
--- a/src/@graph/graph.m
+++ b/src/@graph/graph.m
@@ -205,7 +205,7 @@ classdef graph < handle
             o.data = '';
         end
     end
-    methods (Access = ?section, Hidden = true)
+    methods (Hidden = true)
         o = addSeries(o, varargin)
         write(o, fid, pg, sec, row, col, rep_dir)
     end
diff --git a/src/@page/page.m b/src/@page/page.m
index 9a7910c..0620c0a 100644
--- a/src/@page/page.m
+++ b/src/@page/page.m
@@ -33,7 +33,7 @@ classdef page < handle
         pageDirName = 'tmpRepDir' % The name of the folder in which to store this page. Only used when the latex command is passed. Default: tmpRepDir.
         latex = ''                % The valid LATEX code to be used for this page. Alows the user to create a page to be included in the report by passing LATEX code directly. Default: empty.
     end
-    methods (Access = ?report)
+    methods
         function o = page(varargin)
             %function o = page(varargin)
             % Page Class Constructor
@@ -113,7 +113,7 @@ classdef page < handle
                 '@page.page: sections is not a valid option');
         end
     end
-    methods (Access = ?report, Hidden = true)
+    methods (Hidden = true)
         o = addSection(o, varargin)
         o = addVspace(o, varargin)
         o = addTable(o, varargin)
diff --git a/src/@paragraph/paragraph.m b/src/@paragraph/paragraph.m
index 9220133..e036ef5 100644
--- a/src/@paragraph/paragraph.m
+++ b/src/@paragraph/paragraph.m
@@ -75,7 +75,7 @@ classdef paragraph < handle
             assert(ischar(o.heading), '@paragraph.paragraph: heading must be a string');
         end
     end
-    methods (Access = ?section, Hidden = true)
+    methods (Hidden = true)
         % Methods defined in separate files
         write(o, fid);
     end
diff --git a/src/@report_data/report_data.m b/src/@report_data/report_data.m
index af0e3d8..043de46 100644
--- a/src/@report_data/report_data.m
+++ b/src/@report_data/report_data.m
@@ -71,7 +71,7 @@ classdef report_data < handle
             end
         end
     end
-    methods (Access = ?report_table, Hidden = true)
+    methods (Hidden = true)
         writeDataForTable(o, fid, precision)
     end
 end
diff --git a/src/@report_series/report_series.m b/src/@report_series/report_series.m
index ff93756..35454d6 100644
--- a/src/@report_series/report_series.m
+++ b/src/@report_series/report_series.m
@@ -98,14 +98,14 @@ classdef report_series < handle
             end
         end
     end
-    methods (Access = ?graph, Hidden = true)
+    methods (Hidden = true)
         s = getNameForLegend(o)
         writeSeriesForGraph(o, fid, xrange, series_num)
     end
-    methods (Access = ?report_table, Hidden = true)
+    methods (Hidden = true)
         writeSeriesForTable(o, fid, dates, precision, ncols, rowcolor)
     end
-    methods (Access = {?graph,?report_table}, Hidden = true)
+    methods (Hidden = true)
         tf = isZero(o)
     end
     methods (Access = private)
diff --git a/src/@report_table/report_table.m b/src/@report_table/report_table.m
index 4b8fa17..5f8d36a 100644
--- a/src/@report_table/report_table.m
+++ b/src/@report_table/report_table.m
@@ -44,7 +44,7 @@ classdef report_table < handle
         writeCSV = false              % Whether or not to write a CSV file containing the data displayed in the table. The file will be saved in the directory specified by tableDirName with the same base name as specified by tableName with the ending .csv. Default: false.
         highlightRows = {''}          % A cell array containing the colors to use for row highlighting. See shadeColor for how to use colors with reports. Highlighting for a specific row can be overridden by using the tableRowColor option to addSeries. Default: empty.
     end
-    methods (Access = ?section)
+    methods
         function o = report_table(varargin)
             %function o = report_table(varargin)
             % Report_Table Class Constructor
@@ -150,7 +150,7 @@ classdef report_table < handle
             o.seriesToUse = '';
         end
     end
-    methods (Access = ?section, Hidden = true)
+    methods (Hidden = true)
         o = addData(o, varargin)
         o = addSeries(o, varargin)
         write(o, fid, pg, sec, row, col, rep_dir)
diff --git a/src/@section/section.m b/src/@section/section.m
index 10edefb..ea29782 100644
--- a/src/@section/section.m
+++ b/src/@section/section.m
@@ -24,7 +24,7 @@ classdef section < handle
         cols = 1    % The number of columns in the section. Default: 1.
         height = '' % A string to be used with the \sectionheight LATEX command. Default: '!'
     end
-    methods (Access = ?page)
+    methods
         function o = section(varargin)
             %function o = section(varargin)
             % Section Class Constructor
@@ -74,7 +74,7 @@ classdef section < handle
                 '@section.section: cols must be a string');
         end
     end
-    methods (Access = ?page, Hidden = true)
+    methods (Hidden = true)
          o = addGraph(o, varargin)
          o = addParagraph(o, varargin)
          o = addTable(o, varargin)
diff --git a/src/@vspace/vspace.m b/src/@vspace/vspace.m
index 375e1e1..74dc957 100644
--- a/src/@vspace/vspace.m
+++ b/src/@vspace/vspace.m
@@ -21,7 +21,7 @@ classdef vspace < handle
         hline = 0  % Number of horizontal lines to be inserted. Default 0
         number = 1 % Number of new lines to be inserted. Default 1
     end
-    methods (Access = ?section)
+    methods
         function o = vspace(varargin)
             %function o = vspace(varargin)
             % Vspace Class Constructor
@@ -70,7 +70,7 @@ classdef vspace < handle
             assert(isint(o.hline), '@vspace.vspace: hline must be an integer');
         end
     end
-    methods (Access = ?section, Hidden = true)
+    methods (Hidden = true)
         % Methods defined in separate files
         write(o, fid);
     end
-- 
GitLab