From 10bee498e6c7f3623b8deb4bbee5c071d3646b99 Mon Sep 17 00:00:00 2001 From: Torsten Paul Date: Thu, 8 Jan 2015 19:34:37 +0100 Subject: [PATCH] Fix duplicated output of DEPRECATED marker. --- src/fileutils.cc | 2 +- src/modcontext.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fileutils.cc b/src/fileutils.cc index ac3144ea..621bb600 100644 --- a/src/fileutils.cc +++ b/src/fileutils.cc @@ -22,7 +22,7 @@ std::string lookup_file(const std::string &filename, if (!fs::exists(absfile) && fs::exists(absfile_fallback)) { resultfile = absfile_fallback.string(); - PRINT_DEPRECATION("DEPRECATED: Imported file (%s) found in document root instead of relative to the importing module. This behavior is deprecated", filename); + PRINT_DEPRECATION("Imported file (%s) found in document root instead of relative to the importing module. This behavior is deprecated", filename); } else { resultfile = absfile.string(); diff --git a/src/modcontext.cc b/src/modcontext.cc index 04d46e60..90f04700 100644 --- a/src/modcontext.cc +++ b/src/modcontext.cc @@ -116,7 +116,7 @@ const AbstractModule *ModuleContext::findLocalModule(const std::string &name) co } std::string replacement = Builtins::instance()->isDeprecated(name); if (!replacement.empty()) { - PRINT_DEPRECATION("DEPRECATED: The %s() module will be removed in future releases. Use %s instead.", name % replacement); + PRINT_DEPRECATION("The %s() module will be removed in future releases. Use %s instead.", name % replacement); } return m; }