summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2012-06-07 19:53:17 +0200
committerChristian Persch <chpe@gnome.org>2012-07-01 14:00:11 +0200
commit20ab7e2aea955e4a70be43cbb6e4237afd98bf7b (patch)
tree49223ec176e7df1ca5214fbd488f9dfbb2e43f7d
parentd9e8d3e0f0fc00435b161dd3dfb1b8727922ba00 (diff)
downloadglib-20ab7e2aea955e4a70be43cbb6e4237afd98bf7b.tar.gz
regex: Deprecate an obsolete error code
G_REGEX_ERROR_DEFINE_REPETION is dead and never raised by PCRE.
-rw-r--r--glib/gregex.c3
-rw-r--r--glib/gregex.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/glib/gregex.c b/glib/gregex.c
index 5776077b0..fd8a9f597 100644
--- a/glib/gregex.c
+++ b/glib/gregex.c
@@ -386,9 +386,6 @@ translate_compile_error (gint *errcode, const gchar **errmsg)
case G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE:
*errmsg = _("DEFINE group contains more than one branch");
break;
- case G_REGEX_ERROR_DEFINE_REPETION:
- *errmsg = _("repeating a DEFINE group is not allowed");
- break;
case G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS:
*errmsg = _("inconsistent NEWLINE options");
break;
diff --git a/glib/gregex.h b/glib/gregex.h
index 1110ad04b..ae6a5a138 100644
--- a/glib/gregex.h
+++ b/glib/gregex.h
@@ -104,7 +104,7 @@ G_BEGIN_DECLS
* @G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE: "DEFINE" group contains more
* than one branch. Since 2.16
* @G_REGEX_ERROR_DEFINE_REPETION: Repeating a "DEFINE" group is not allowed.
- * Since 2.16
+ * This error is never raised. Since: 2.16 Deprecated: 2.34
* @G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS: Inconsistent newline options.
* Since 2.16
* @G_REGEX_ERROR_MISSING_BACK_REFERENCE: "\\g" is not followed by a braced