2012-09-05 [colin] 3.8.1cvs44
[claws.git] / src / matcher.c
index 2fe403a06776fc63a10fc4cc5e21551a8cffa23d..2d5d9c9985c7d500081267bc3de9b82aaf6091a5 100644 (file)
@@ -272,41 +272,6 @@ MatcherProp *matcherprop_new(gint criteria, const gchar *header,
        return prop;
 }
 
        return prop;
 }
 
-/*!
- *\brief       Allocate a structure for a filtering / scoring
- *             "condition" (a matcher structure)
- *             Same as matcherprop_new, except it doesn't change the expr's 
- *             case.
- *
- *\param       criteria Criteria ID (MATCHCRITERIA_XXXX)
- *\param       header Header string (if criteria is MATCHCRITERIA_HEADER
-                       or MATCHCRITERIA_FOUND_IN_ADDRESSBOOK)
- *\param       matchtype Type of action (MATCHTYPE_XXX)
- *\param       expr String value or expression to check
- *\param       value Integer value to check
- *
- *\return      MatcherProp * Pointer to newly allocated structure
- */
-MatcherProp *matcherprop_new_create(gint criteria, const gchar *header,
-                             gint matchtype, const gchar *expr,
-                             int value)
-{
-       MatcherProp *prop;
-
-       prop = g_new0(MatcherProp, 1);
-       prop->criteria = criteria;
-       prop->header = header != NULL ? g_strdup(header) : NULL;
-
-       prop->expr = expr != NULL ? g_strdup(expr) : NULL;
-
-       prop->matchtype = matchtype;
-       prop->preg = NULL;
-       prop->value = value;
-       prop->error = 0;
-
-       return prop;
-}
-
 /*!
  *\brief       Free a matcher structure
  *
 /*!
  *\brief       Free a matcher structure
  *
@@ -742,8 +707,8 @@ static gboolean matcherprop_match_test(const MatcherProp *prop,
  *
  *\return      gboolean TRUE if a match
  */
  *
  *\return      gboolean TRUE if a match
  */
-gboolean matcherprop_match(MatcherProp *prop, 
-                          MsgInfo *info)
+static gboolean matcherprop_match(MatcherProp *prop, 
+                                 MsgInfo *info)
 {
        time_t t;
 
 {
        time_t t;