diff --git a/src/sphinx_builder/sphinx_xml.erl b/src/sphinx_builder/sphinx_xml.erl index 08db1b3..03844ab 100644 --- a/src/sphinx_builder/sphinx_xml.erl +++ b/src/sphinx_builder/sphinx_xml.erl @@ -95,9 +95,4 @@ valid_file_names(Files) -> [{valid_name(Name), Length} || {Name, Length} <- Files]. valid_name(S) -> - ValidName = string_util:strip_invalid_unicode(S), - if length(ValidName) < length(S) -> - ?I(?FMT("~s -> ~s", [S, ValidName])); - true -> ok - end, - ValidName. + string_util:strip_invalid_unicode(S).