summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2012-06-13 13:02:09 -0300
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-06-18 09:29:52 +0100
commit03bf14abd9305596d0b4a013ef7cda70545f3651 (patch)
tree343f518051e608c858aa11cc333735b44a3688d6
parentd82591dd218891f3fb52cf523cec1446b4d67f11 (diff)
insanitytest: Remove add_shared_checklist_item.
-rw-r--r--docs/insanity/insanity-sections.txt1
-rw-r--r--lib/insanity/insanitytest.c58
-rw-r--r--lib/insanity/insanitytest.h1
3 files changed, 0 insertions, 60 deletions
diff --git a/docs/insanity/insanity-sections.txt b/docs/insanity/insanity-sections.txt
index 01738af..86c35da 100644
--- a/docs/insanity/insanity-sections.txt
+++ b/docs/insanity/insanity-sections.txt
@@ -19,7 +19,6 @@ insanity_test_new
insanity_test_add_argument
insanity_test_add_checklist_item
-insanity_test_add_shared_checklist_item
insanity_test_add_extra_info
insanity_test_add_output_file
diff --git a/lib/insanity/insanitytest.c b/lib/insanity/insanitytest.c
index 1189286..16eb484 100644
--- a/lib/insanity/insanitytest.c
+++ b/lib/insanity/insanitytest.c
@@ -132,7 +132,6 @@ struct _InsanityTestPrivateData
char *test_name;
char *test_desc;
char *test_full_desc;
- GList *shareditems;
GHashTable *test_checklist;
GHashTable *test_arguments;
GHashTable *test_extra_infos;
@@ -1492,30 +1491,6 @@ output_checklist_table (InsanityTest * test, FILE * f)
}
static void
-output_shared_items (InsanityTest * test, FILE * f)
-{
- GList *tmp;
- const char *comma = "";
-
- fprintf (f, ",\n \"__shared_checklist_items__\": {\n");
- for (tmp = test->priv->shareditems; tmp; tmp = tmp->next) {
- ChecklistItem *item = (ChecklistItem *) tmp->data;
-
- fprintf (f, "%s \"%s\" : \n", comma, item->label);
- fprintf (f, " {\n");
- fprintf (f, " \"description\" : \"%s\"", item->description);
- if (item->likely_error) {
- fprintf (f, ",\n \"likely_error\" : \"%s\"", item->likely_error);
- }
- fprintf (f, "\n }");
-
- comma = ",\n";
- }
-
- fprintf (f, "\n }");
-}
-
-static void
output_arguments_table (InsanityTest * test, FILE * f)
{
GHashTableIter it;
@@ -1593,7 +1568,6 @@ insanity_test_write_metadata (InsanityTest * test)
fprintf (f, " \"__name__\": \"%s\",\n", name);
fprintf (f, " \"__description__\": \"%s\"", desc);
output_checklist_table (test, f);
- output_shared_items (test, f);
output_arguments_table (test, f);
output_table (test, f, test->priv->test_extra_infos, "__extra_infos__",
&get_raw_string);
@@ -1940,7 +1914,6 @@ insanity_test_finalize (GObject * gobject)
g_free (test->priv->test_name);
g_free (test->priv->test_desc);
g_free (test->priv->test_full_desc);
- g_list_free (priv->shareditems);
g_hash_table_destroy (priv->test_checklist);
g_hash_table_destroy (priv->test_arguments);
g_hash_table_destroy (priv->test_extra_infos);
@@ -2216,37 +2189,6 @@ insanity_test_add_checklist_item (InsanityTest * test, const char *label,
}
/**
- * insanity_test_add_shared_checklist_item:
- * @test: A #InsanityTest to operate on
- * @label: The label of the checklist item that is shared between start/stop
- * iterations.
- *
- * This function adds a checklist item as being shared between iterations of
- * start/stop when the test is run. This means that the item value of this
- * checklist item will be the same between all iterations of start/stop.
- */
-void
-insanity_test_add_shared_checklist_item (InsanityTest * test,
- const gchar * label)
-{
- ChecklistItem *item;
-
- g_return_if_fail (INSANITY_IS_TEST (test));
-
- item = g_hash_table_lookup (test->priv->test_checklist, label);
-
- if (item == NULL) {
- INSANITY_LOG (INSANITY_TEST ((test)), "test", INSANITY_LOG_LEVEL_INFO,
- "%s not in the checklist item list, can't add it to the shared item list",
- label);
-
- return;
- }
-
- test->priv->shareditems = g_list_prepend (test->priv->shareditems, item);
-}
-
-/**
* insanity_test_add_argument:
* @test: a #InsanityTest instance to operate on.
* @label: the new argument's label
diff --git a/lib/insanity/insanitytest.h b/lib/insanity/insanitytest.h
index 0da1124..74d652d 100644
--- a/lib/insanity/insanitytest.h
+++ b/lib/insanity/insanitytest.h
@@ -94,7 +94,6 @@ GType insanity_test_get_type (void);
InsanityTest *insanity_test_new(const char *name, const char *description, const char *full_description);
void insanity_test_add_checklist_item(InsanityTest *test, const char *label, const char *description, const char *error_hint, gboolean global);
-void insanity_test_add_shared_checklist_item (InsanityTest * test, const gchar * label);
void insanity_test_add_argument(InsanityTest *test, const char *label, const char *description, const char *full_description, gboolean global, const GValue *default_value);
void insanity_test_add_output_file(InsanityTest *test, const char *label, const char *description, gboolean global);
void insanity_test_add_extra_info(InsanityTest *test, const char *label, const char *description);