diff --git a/src/@graph/write.m b/src/@graph/write.m index 4454a6cc5bf995c28328af9fd7ebd740f63b27a9..0cf707b59cbe71e6012c4f79830fbc645ca0b0a3 100644 --- a/src/@graph/write.m +++ b/src/@graph/write.m @@ -34,7 +34,6 @@ function write(o, fid, pg, sec, row, col, rep_dir) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see <http://www.gnu.org/licenses/>. -assert(fid ~= -1); graphName = writeGraphFile(o, pg, sec, row, col, rep_dir); fprintf(fid, '\\input{%s}', graphName); end \ No newline at end of file diff --git a/src/@page/write.m b/src/@page/write.m index 1138521559006f2cc4ddc6d47a4279c11025f90f..63b2675538e371d1264170fe779d843ca603fed1 100644 --- a/src/@page/write.m +++ b/src/@page/write.m @@ -31,8 +31,6 @@ function write(o, fid, pg, rep_dir) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see <http://www.gnu.org/licenses/>. -assert(fid ~= -1); - fprintf(fid, '\n%% Page Number %d written %s\n', pg, datestr(now)); if strcmpi(o.orientation, 'landscape') fprintf(fid, '\\begin{landscape}\n'); diff --git a/src/@paragraph/write.m b/src/@paragraph/write.m index a800438c9dcfcba4d14facf106bdaaa631e90592..8133a04af5cbbb5a4e6b53eeb6e2e59f0855c887 100644 --- a/src/@paragraph/write.m +++ b/src/@paragraph/write.m @@ -29,7 +29,6 @@ function write(o, fid) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see <http://www.gnu.org/licenses/>. -assert(fid ~= -1); fprintf(fid, '%% Paragraph Object written %s\n', datestr(now)); fprintf(fid, '\\multicolumn{1}{p{\\linewidth}}{%%\n'); if o.cols ~= 1 diff --git a/src/@report_data/writeDataForTable.m b/src/@report_data/writeDataForTable.m index 109c48550d88795cac8cc88019f870c15827a5c8..1df33dc6bcdec02367c68fd1719ddb5169912354 100644 --- a/src/@report_data/writeDataForTable.m +++ b/src/@report_data/writeDataForTable.m @@ -31,10 +31,6 @@ function writeDataForTable(o, fid, precision) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see <http://www.gnu.org/licenses/>. -%% Validate options passed to function -assert(fid ~= -1); -assert(isint(precision)); - %% Validate options provided by user assert(ischar(o.tableSubSectionHeader), '@report_data.writeDataForTable: tableSubSectionHeader must be a string'); if isempty(o.tableSubSectionHeader) diff --git a/src/@report_series/writeSeriesForTable.m b/src/@report_series/writeSeriesForTable.m index 16706503f10f6d6f1f101291446e3ec07bbb3057..dbdad2587e65c3e22c2ac612f85a0ed039207c84 100644 --- a/src/@report_series/writeSeriesForTable.m +++ b/src/@report_series/writeSeriesForTable.m @@ -35,7 +35,6 @@ function writeSeriesForTable(o, fid, dates, precision, ncols, rowcolor) % along with Dynare. If not, see <http://www.gnu.org/licenses/>. %% Validate options passed to function -assert(fid ~= -1); for i=1:length(dates) assert(isdates(dates{i})); end diff --git a/src/@report_table/write.m b/src/@report_table/write.m index 9b5315a379bc9dc0961be542e86404c01d2e7be0..776958967e8f020977a1e3e2725f39e3bab73ba2 100644 --- a/src/@report_table/write.m +++ b/src/@report_table/write.m @@ -34,7 +34,6 @@ function write(o, fid, pg, sec, row, col, rep_dir) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see <http://www.gnu.org/licenses/>. -assert(fid ~= -1); tableName = writeTableFile(o, pg, sec, row, col, rep_dir); fprintf(fid, '\\input{%s}', tableName); end diff --git a/src/@section/write.m b/src/@section/write.m index aec369b4a8ad01f85ff03fa099faef96db1d5ef8..4e68ac743b5d115452d7a8ba4cbab490928a92d9 100644 --- a/src/@section/write.m +++ b/src/@section/write.m @@ -32,7 +32,6 @@ function write(o, fid, pg, sec, rep_dir) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see <http://www.gnu.org/licenses/>. -assert(fid ~= -1); fprintf(fid, '%% Section Object written %s\n', datestr(now)); if isempty(o.elements) warning(['reporting:section.write(): trying to print a section ' ... diff --git a/src/@vspace/write.m b/src/@vspace/write.m index d3d7a18ca4920193cbe7aa39f909084645bd25e7..1a7eb55875d2df4b95e2fe405a545de2876aba38 100644 --- a/src/@vspace/write.m +++ b/src/@vspace/write.m @@ -29,8 +29,6 @@ function o = write(o, fid) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see <http://www.gnu.org/licenses/>. -assert(fid ~= -1); - fprintf(fid, repmat(' \\par \\medskip ', 1, o.number)); if o.hline > 0 fprintf(fid, ['\\\\\n' repmat('\\midrule', 1, o.hline)]);