From def39238640489b41da5cdc8fd4a83d16d49fcc7 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 8 Dec 2010 15:03:24 +0100 Subject: removal of C++isms from libabrt, part 2 This patch rewrites a few places where we use C++ strings Signed-off-by: Denys Vlasenko --- src/include/abrtlib.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/include') diff --git a/src/include/abrtlib.h b/src/include/abrtlib.h index f3a5de4e..d8dd361a 100644 --- a/src/include/abrtlib.h +++ b/src/include/abrtlib.h @@ -245,16 +245,6 @@ bool load_conf_file(const char *pPath, map_string_h *settings, bool skipKeysWith /* C++ style stuff */ #ifdef __cplusplus -std::string unsigned_to_string(unsigned long long x); -std::string signed_to_string(long long x); -template inline -std::string to_string(T x) -{ - if ((T)~(T)0 < (T)0) /* T is a signed type */ - return signed_to_string(x); - return unsigned_to_string(x); -} - // TODO: npajkovs: full rewrite ssprintf -> xasprintf static inline std::string ssprintf(const char *format, ...) { -- cgit