[gnome-builder] Revert "search: add runtime warnings for invalid thread access"



commit fbf035db91f58c819889da4e20884025752e11a3
Author: Christian Hergert <chergert redhat com>
Date:   Fri Aug 26 12:45:42 2016 -0700

    Revert "search: add runtime warnings for invalid thread access"
    
    These aren't actually the same.
    
    This reverts commit c92fd728b9f7cdf2f9574b1afddc4a4228499a2e.

 libide/search/ide-search-context.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/libide/search/ide-search-context.c b/libide/search/ide-search-context.c
index abacc41..4b343b6 100644
--- a/libide/search/ide-search-context.c
+++ b/libide/search/ide-search-context.c
@@ -62,7 +62,6 @@ ide_search_context_provider_completed (IdeSearchContext  *self,
   g_return_if_fail (IDE_IS_SEARCH_CONTEXT (self));
   g_return_if_fail (IDE_IS_SEARCH_PROVIDER (provider));
   g_return_if_fail (g_list_find (self->providers, provider));
-  g_return_if_fail (g_main_context_get_thread_default () == g_main_context_default ());
 
   if (--self->in_progress == 0)
     g_signal_emit (self, signals [COMPLETED], 0);
@@ -92,7 +91,6 @@ ide_search_context_add_result (IdeSearchContext  *self,
   g_return_if_fail (IDE_IS_SEARCH_CONTEXT (self));
   g_return_if_fail (IDE_IS_SEARCH_PROVIDER (provider));
   g_return_if_fail (IDE_IS_SEARCH_RESULT (result));
-  g_return_if_fail (g_main_context_get_thread_default () == g_main_context_default ());
 
   g_signal_emit (self, signals [RESULT_ADDED], 0, provider, result);
 }
@@ -105,7 +103,6 @@ ide_search_context_remove_result (IdeSearchContext  *self,
   g_return_if_fail (IDE_IS_SEARCH_CONTEXT (self));
   g_return_if_fail (IDE_IS_SEARCH_PROVIDER (provider));
   g_return_if_fail (IDE_IS_SEARCH_RESULT (result));
-  g_return_if_fail (g_main_context_get_thread_default () == g_main_context_default ());
 
   g_signal_emit (self, signals [RESULT_REMOVED], 0, provider, result);
 }
@@ -117,7 +114,6 @@ ide_search_context_set_provider_count (IdeSearchContext  *self,
 {
   g_return_if_fail (IDE_IS_SEARCH_CONTEXT (self));
   g_return_if_fail (IDE_IS_SEARCH_PROVIDER (provider));
-  g_return_if_fail (g_main_context_get_thread_default () == g_main_context_default ());
 
   g_signal_emit (self, signals [COUNT_SET], 0, provider, count);
 }
@@ -134,7 +130,6 @@ ide_search_context_execute (IdeSearchContext *self,
   g_return_if_fail (IDE_IS_SEARCH_CONTEXT (self));
   g_return_if_fail (!self->executed);
   g_return_if_fail (search_terms);
-  g_return_if_fail (g_main_context_get_thread_default () == g_main_context_default ());
 
   self->executed = TRUE;
   self->in_progress = g_list_length (self->providers);
@@ -175,7 +170,6 @@ _ide_search_context_add_provider (IdeSearchContext  *self,
   g_return_if_fail (IDE_IS_SEARCH_CONTEXT (self));
   g_return_if_fail (IDE_IS_SEARCH_PROVIDER (provider));
   g_return_if_fail (!self->executed);
-  g_return_if_fail (g_main_context_get_thread_default () == g_main_context_default ());
 
   self->providers = g_list_append (self->providers, g_object_ref (provider));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]