From cec37c9b66b8711b213f114875d215f56b8120aa Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 8 May 2014 12:30:23 -0300 Subject: logging: remove unused message-id scripts The current unused implementation for message-ids in the logs depends on automatically generated files. The generated files are not included in the distributed tarball. This causes issues when distributions build packages, they need to re-run ./autogen.sh to create the needed files. I thought of including the generated files in the distribution tarball. However, the contents of these files are not actively used, so it seems to make more sense to drop it all together. These functions were the only users of libintl and gettext too, so dropped the requirement checking from configure.ac. A replacement for the message-id logging framework is in progress. Any changes that this patch makes, can be reverted in the submission of patches for the new framework. Reference: http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/6212 Change-Id: Iea82dd3910944a5c6be3ee393806eccabd575e11 BUG: 1038391 Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/7714 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- gf-error-codes.h.template | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 gf-error-codes.h.template (limited to 'gf-error-codes.h.template') diff --git a/gf-error-codes.h.template b/gf-error-codes.h.template deleted file mode 100644 index 5ca64fd90fc..00000000000 --- a/gf-error-codes.h.template +++ /dev/null @@ -1,34 +0,0 @@ -/***************************************************************/ -/** **/ -/** DO NOT EDIT THIS FILE **/ -/** THIS IS AUTO-GENERATED FROM LOG BOOK **/ -/** YOUR CHANGES WILL BE LOST IN NEXT BUILD **/ -/** **/ -/***************************************************************/ - -#ifndef _GF_ERROR_CODES_H -#define _GF_ERROR_CODES_H - -#ifdef HAVE_LIBINTL_H -#include - -#define _(STRING) gettext(STRING) -#endif - -/** START: ERROR CODE DEFINITIONS **/ -$DEFINES -/** END: ERROR CODE DEFINITIONS **/ - - -/** START: FUNCTION RETURNS MESSAGE OF GIVEN ERROR CODE **/ -const char * -_gf_get_message (int code) { - switch (code) { -$CASES - default: return NULL; - } -} -/** END: FUNCTION RETURNS MESSAGE OF GIVEN ERROR CODE **/ - - -#endif -- cgit