diff --git a/io/nativefilestream.h b/io/nativefilestream.h index acd0326..4b24ce7 100644 --- a/io/nativefilestream.h +++ b/io/nativefilestream.h @@ -28,9 +28,6 @@ public: void open(const std::string &path, std::ios_base::openmode openMode); void openFromFileDescriptor(int fileDescriptor, std::ios_base::openmode openMode); void close(); -#if !defined(__ANDROID_API__) || !defined(__ANDROID_API_N__) || (__ANDROID_API__ < __ANDROID_API_N__) - FILE fileHandle(); -#endif static std::unique_ptr> makeFileBuffer(const std::string &path, ios_base::openmode openMode); static std::unique_ptr> makeFileBuffer(int fileDescriptor, ios_base::openmode openMode); @@ -42,9 +39,6 @@ private: void setFileBuffer(std::unique_ptr> buffer); std::unique_ptr> m_filebuf; -#if !defined(__ANDROID_API__) || !defined(__ANDROID_API_N__) || (__ANDROID_API__ < __ANDROID_API_N__) - FILE m_fileHandle; -#endif }; inline NativeFileStream::NativeFileStream(const std::string &path, ios_base::openmode openMode) @@ -59,18 +53,6 @@ inline NativeFileStream::NativeFileStream(int fileDescriptor, ios_base::openmode openFromFileDescriptor(fileDescriptor, openMode); } -#if !defined(__ANDROID_API__) || !defined(__ANDROID_API_N__) || (__ANDROID_API__ < __ANDROID_API_N__) -/*! - * \brief Returns the underlying file handle if possible; otherwise the behaviour is undefined. - * \deprecated Not implemented for any backend and will be removed in v5. - * \todo Remove in v5. - */ -inline FILE NativeFileStream::fileHandle() -{ - return m_fileHandle; -} -#endif - #else // CPP_UTILITIES_USE_NATIVE_FILE_BUFFER using NativeFileStream = std::fstream;