diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-11-01 12:27:18 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-11-01 13:43:25 +0100 |
commit | adda34cf902c246a75eb46800949dc15d5e84f37 (patch) | |
tree | b0d3badeb6dd745f324054cc309fb511f2aaffeb /src | |
parent | d753de051893698bfd1e107a2d03b1a38b55dd91 (diff) | |
download | astra-adda34cf902c246a75eb46800949dc15d5e84f37.tar.gz astra-adda34cf902c246a75eb46800949dc15d5e84f37.tar.bz2 astra-adda34cf902c246a75eb46800949dc15d5e84f37.tar.xz astra-adda34cf902c246a75eb46800949dc15d5e84f37.zip |
Remove unused code
Diffstat (limited to 'src')
-rw-r--r-- | src/swrap.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/swrap.cpp b/src/swrap.cpp deleted file mode 100644 index c970ab5..0000000 --- a/src/swrap.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/* ------------------------------------------------------------------------ -Copyright: 2010-2016, iMinds-Vision Lab, University of Antwerp - 2014-2016, CWI, Amsterdam - -Contact: astra@uantwerpen.be -Website: http://www.astra-toolbox.com/ - -This file is part of the ASTRA Toolbox. - - -The ASTRA Toolbox 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. - -The ASTRA Toolbox 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 the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>. - ------------------------------------------------------------------------ -*/ - -#ifndef _MSC_VER - -#include "astra/swrap.h" -#include <cerrno> - -errno_t fopen_s(FILE** pFile, const char* filename, const char* mode) -{ - if (!pFile) - return EINVAL; - - FILE* x = fopen(filename, mode); - if (!x) - return errno; - - *pFile = x; - return 0; -} - -#endif |