message: util: Remove zero-argument versions of LogPrint and error
  backports bitcoin@a5072a773071b8f4b644f84a77643e2ad18dba3a
diff: @@ -67,34 +67,17 @@ int LogPrintStr(const std::string& str);
  /** Get format string from VA_ARGS for error reporting */
  template<typename... Args> std::string FormatStringFromLogArgs(const char *fmt, const Args&... args) { return fmt; }
  -template<typename T1, typename... Args>
  -static inline int LogPrint(const char* category, const char* fmt, const T1& v1, const Args&... args)
  +template<typename... Args>
  +static inline int LogPrint(const char* category, const char* fmt, const Args&... args)
  {
  if(!LogAcceptCategory(category)) return 0; \
  - return LogPrintStr(tfm::format(fmt, v1, args...));
  + return LogPrintStr(tfm::format(fmt, args...));
  }
  -template<typename T1, typename... Args>
  -bool error(const char* fmt, const T1& v1, const Args&... args)
  +template<typename... Args>
  +bool error(const char* fmt, const Args&... args)
  {
  - LogPrintStr("ERROR: " + tfm::format(fmt, v1, args...) + "\n");
  - return false;
  -}
  -
  -/**
  - * Zero-arg versions of logging and error, these are not covered by
  - * the variadic templates above (and don't take format arguments but
  - * bare strings)
  - */
  -static inline int LogPrint(const char* category, const char* s)
  -{
  - if (!LogAcceptCategory(category)) return 0;
  - return LogPrintStr(s);
  -}
  -
  -static inline bool error(const char* s)
  -{
  - LogPrintStr(std::string("ERROR: ") + s + "\n");
  + LogPrintStr("ERROR: " + tfm::format(fmt, args...) + "\n");
  return false;
  }
  