remove non usefull code.

This commit is contained in:
Jonathan Dumaresq 2018-12-12 09:32:52 -05:00
parent ae48acbb23
commit 3335da622a

View file

@ -2295,16 +2295,13 @@ public:
std::char_traits<char>::int_type get_character() noexcept override std::char_traits<char>::int_type get_character() noexcept override
{ {
auto res = fgetc(const_cast<FILE *>(file)); return fgetc(const_cast<FILE *>(file));
if(res == EOF)
return std::char_traits<char>::eof();
else
return static_cast<std::char_traits<char>::int_type>(res);
} }
private: private:
/// the file pointer to read from /// the file pointer to read from
const FILE * file; const FILE * file;
}; };
template<typename WideStringType> template<typename WideStringType>
class wide_string_input_adapter : public input_adapter_protocol class wide_string_input_adapter : public input_adapter_protocol
{ {