From 6398796f95f9c3908379269e38dba9a5ed4d31cb Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Mon, 30 Jan 2017 16:11:59 +0900 Subject: [PATCH] Remove function bodies of some non-specialized template functions. The code won't link when a wrong version is used. It's better than showing a debug message. --- taglib/fileref.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/taglib/fileref.cpp b/taglib/fileref.cpp index 3a7f2c65..dca69f6a 100644 --- a/taglib/fileref.cpp +++ b/taglib/fileref.cpp @@ -62,11 +62,7 @@ namespace // Templatized internal functions. T should be String or IOStream*. template - FileName toFileName(T arg) - { - debug("FileRef::toFileName(): This version should never be called."); - return FileName(L""); - } + FileName toFileName(T arg); template <> FileName toFileName(IOStream *arg) @@ -82,11 +78,7 @@ namespace template File *resolveFileType(T arg, bool readProperties, - AudioProperties::ReadStyle style) - { - debug("FileRef::resolveFileType(): This version should never be called."); - return 0; - } + AudioProperties::ReadStyle style); template <> File *resolveFileType(IOStream *arg, bool readProperties,