Removed useless condition (first argument has to be a dates object).

time-shift
Stéphane Adjemian (Scylla) 2013-11-05 16:28:23 +01:00
parent 9795edd892
commit 7e70af88a9
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ function C = minus(A,B) % --*-- Unitary tests --*--
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if isa(A,'dates') && isa(B,'dates')
if isa(B,'dates')
if ~isequal(A.freq,B.freq)
error(['dates::minus: Input arguments ''' inputname(1) ''' and ''' inputname(2) ''' must have common frequencies!'])
end