Remove warning in g_simple_async_result_complete

This warning hits code that uses GSimpleAsyncResult outside of a
mainloop as a helper object. For instance EggDBus does this.
Since the bugs this warning would fix are pretty easy to spot
and since EggDBus is deployed already we just remove the
"called from outside main loop" warning.

However, we need to keep the "called from wrong context" warning
as that is very helpful when debugging misuse of the new multiple
main context code.
This commit is contained in:
Alexander Larsson 2009-09-07 10:25:14 +02:00
parent 034d516160
commit 06de24f430

View File

@ -582,8 +582,6 @@ g_simple_async_result_complete (GSimpleAsyncResult *simple)
if (simple->context != current_context) if (simple->context != current_context)
g_warning ("g_simple_async_result_complete() called from wrong context!"); g_warning ("g_simple_async_result_complete() called from wrong context!");
} }
else
g_warning ("g_simple_async_result_complete() called from outside main loop!");
#endif #endif
if (simple->callback) if (simple->callback)