[anjuta] lang-cpp-java: Reverted the assist ref floating.
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] lang-cpp-java: Reverted the assist ref floating.
- Date: Sat, 20 Feb 2010 10:32:11 +0000 (UTC)
commit b6d5e60c4f110554e532a2dc451fe9334c4c6efd
Author: Naba Kumar <naba gnome org>
Date: Fri Feb 19 22:51:48 2010 +0200
lang-cpp-java: Reverted the assist ref floating.
.../language-support-cpp-java/cpp-java-assist.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cpp-java-assist.c b/plugins/language-support-cpp-java/cpp-java-assist.c
index a3bb433..4339e3b 100644
--- a/plugins/language-support-cpp-java/cpp-java-assist.c
+++ b/plugins/language-support-cpp-java/cpp-java-assist.c
@@ -202,33 +202,21 @@ on_query_data (gint search_id, IAnjutaIterable* iter, CppJavaAssist* assist)
}
static void
-unref_if_queries_finished (CppJavaAssist* assist)
-{
- if (!(assist->priv->async_file || assist->priv->async_project || assist->priv->async_system))
- {
- g_object_unref (assist);
- }
-}
-
-static void
system_finished (AnjutaAsyncNotify* notify, CppJavaAssist* assist)
{
assist->priv->async_system = FALSE;
- unref_if_queries_finished (assist);
}
static void
file_finished (AnjutaAsyncNotify* notify, CppJavaAssist* assist)
{
assist->priv->async_file = FALSE;
- unref_if_queries_finished (assist);
}
static void
project_finished (AnjutaAsyncNotify* notify, CppJavaAssist* assist)
{
assist->priv->async_project = FALSE;
- unref_if_queries_finished (assist);
}
#define SCOPE_BRACE_JUMP_LIMIT 50
@@ -520,8 +508,6 @@ cpp_java_assist_create_word_completion_cache (CppJavaAssist *assist)
g_free (assist->priv->search_cache);
assist->priv->search_cache = g_strdup (assist->priv->pre_word);
- /* Take a reference on CppJavaAssist until queries finish */
- g_object_ref (assist);
DEBUG_PRINT ("Started async search for: %s", assist->priv->pre_word);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]