From 23be65772d34d6980ed40dfcba04e03e901f60f3 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Thu, 6 May 2021 12:32:45 +0200 Subject: [PATCH] remove useless overload --- .../include/CGAL/Surface_mesh/IO/OFF.h | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/Surface_mesh/include/CGAL/Surface_mesh/IO/OFF.h b/Surface_mesh/include/CGAL/Surface_mesh/IO/OFF.h index d0984e8f1ba..662ccbbf7a3 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/IO/OFF.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/IO/OFF.h @@ -351,24 +351,6 @@ bool read_OFF(std::istream& is, { return read_OFF(is, sm, parameters::all_default()); } -template -bool read_OFF(const char* fname, - Surface_mesh& sm, - const CGAL_BGL_NP_CLASS& np) -{ - std::ifstream in(fname); - return read_OFF(in, sm, np); -} - -template -bool read_OFF(const char* fname, - Surface_mesh& sm) -{ - return read_OFF(fname, sm, parameters::all_default()); -} - template @@ -376,7 +358,8 @@ bool read_OFF(std::string& fname, Surface_mesh& sm, const CGAL_BGL_NP_CLASS& np) { - return read_OFF(fname.c_str(), sm, np); + std::ifstream in(fname.c_str()); + return read_OFF(in, sm, np); } template