From e7fde9b01293d7bfdfe644b73f8ac679211d0b08 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 11 Jan 2011 18:53:22 +0100 Subject: remove C++-ism ssprintf from abrtlib.h Signed-off-by: Denys Vlasenko --- src/include/abrtlib.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/include') diff --git a/src/include/abrtlib.h b/src/include/abrtlib.h index 9f428486..88e52fff 100644 --- a/src/include/abrtlib.h +++ b/src/include/abrtlib.h @@ -283,23 +283,4 @@ bool load_conf_file(const char *pPath, map_string_h *settings, bool skipKeysWith } #endif - -/* C++ style stuff */ -#ifdef __cplusplus -// TODO: npajkovs: full rewrite ssprintf -> xasprintf -static inline std::string ssprintf(const char *format, ...) -{ - va_list p; - char *string_ptr; - - va_start(p, format); - string_ptr = xvasprintf(format, p); - va_end(p); - - std::string res = string_ptr; - free(string_ptr); - return res; -} -#endif - #endif -- cgit