regex: Deprecate an obsolete error code
authorChristian Persch <chpe@gnome.org>
Thu, 7 Jun 2012 17:53:17 +0000 (19:53 +0200)
committerChristian Persch <chpe@gnome.org>
Sun, 1 Jul 2012 12:00:11 +0000 (14:00 +0200)
G_REGEX_ERROR_DEFINE_REPETION is dead and never raised by PCRE.

glib/gregex.c
glib/gregex.h

index 5776077..fd8a9f5 100644 (file)
@@ -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;
index 1110ad0..ae6a5a1 100644 (file)
@@ -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