diff --git a/include/pdal/util/Utils.hpp b/include/pdal/util/Utils.hpp index f0e6053150..1240fc802a 100644 --- a/include/pdal/util/Utils.hpp +++ b/include/pdal/util/Utils.hpp @@ -58,27 +58,6 @@ namespace pdal namespace Utils { - template - char *as_buffer(T& data) - { return static_cast(static_cast(&data)); } - - template - char *as_buffer(T* data) - { return static_cast(static_cast(data)); } - - template - bool check_stream_state(std::basic_ios& srtm) - { - // Test stream state bits - if (srtm.eof()) - throw std::out_of_range("end of file encountered"); - else if (srtm.fail()) - throw std::runtime_error("non-fatal I/O error occured"); - else if (srtm.bad()) - throw std::runtime_error("fatal I/O error occured"); - return true; - } - PDAL_DLL void random_seed(unsigned int seed); PDAL_DLL double random(double minimum, double maximum); PDAL_DLL double uniform(const double& minimum=0.0f,