[med-svn] [SCM] aghermann branch, master, updated. 3603e7ef1289f9ec79a3eb415b6d141166e9498a

Andrei Zavada johnhommer at gmail.com
Sun Jul 14 22:28:25 UTC 2013


The following commit has been merged in the master branch:
commit 4a369e5ab809b9b5da935457ba913430e205a81e
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Mon Jul 15 01:21:03 2013 +0300

    remove redundant safety check in CEDFFile::put_region_smpl()

diff --git a/src/libsigfile/edf-io.cc b/src/libsigfile/edf-io.cc
index b4170c1..4147752 100644
--- a/src/libsigfile/edf-io.cc
+++ b/src/libsigfile/edf-io.cc
@@ -73,8 +73,6 @@ put_region_smpl( const int h,
 {
 	if ( unlikely (_status & (CSource::TStatus::bad_header | TStatus::bad_version)) )
 		throw invalid_argument("CEDFFile::put_region_(): broken source");
-	if ( unlikely (_mmapping == NULL) )
-		throw invalid_argument("CEDFFile::put_region_(): no data");
 	if ( unlikely (offset >= samplerate(h) * recording_time()) )
 		throw range_error("CEDFFile::put_region_(): offset beyond end of file");
 	if ( unlikely (offset + src.size() > samplerate(h) * recording_time()) ) {

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list