From 4036d7d18a22af98beee1644d393e73240e3aee5 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 4 May 2016 19:09:17 +0200 Subject: [PATCH] Remove not useless tm_source_file_ctags_init() indirection --- tagmanager/src/tm_source_file.c | 6 ------ tagmanager/src/tm_source_file.h | 2 -- tagmanager/src/tm_workspace.c | 3 ++- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/tagmanager/src/tm_source_file.c b/tagmanager/src/tm_source_file.c index 1e01b969d..c8efa18a5 100644 --- a/tagmanager/src/tm_source_file.c +++ b/tagmanager/src/tm_source_file.c @@ -661,12 +661,6 @@ static gboolean tm_source_file_tags(const tagEntryInfo *const tag, return TRUE; } -void tm_source_file_ctags_init(void) -{ - tm_ctags_init(); - tm_parser_verify_type_mappings(); -} - /* Initializes a TMSourceFile structure from a file name. */ static gboolean tm_source_file_init(TMSourceFile *source_file, const char *file_name, const char* name) diff --git a/tagmanager/src/tm_source_file.h b/tagmanager/src/tm_source_file.h index 2550c1976..ee60c4e16 100644 --- a/tagmanager/src/tm_source_file.h +++ b/tagmanager/src/tm_source_file.h @@ -38,8 +38,6 @@ typedef struct TMSourceFile GType tm_source_file_get_type(void); -void tm_source_file_ctags_init(void); - TMSourceFile *tm_source_file_new(const char *file_name, const char *name); void tm_source_file_free(TMSourceFile *source_file); diff --git a/tagmanager/src/tm_workspace.c b/tagmanager/src/tm_workspace.c index 037b0a92c..87d4e62da 100644 --- a/tagmanager/src/tm_workspace.c +++ b/tagmanager/src/tm_workspace.c @@ -31,6 +31,7 @@ #include #include "tm_workspace.h" +#include "tm_ctags_wrappers.h" #include "tm_tag.h" #include "tm_parser.h" @@ -77,7 +78,7 @@ static gboolean tm_create_workspace(void) theWorkspace->typename_array = g_ptr_array_new(); theWorkspace->global_typename_array = g_ptr_array_new(); - tm_source_file_ctags_init(); + tm_ctags_init(); return TRUE; } -- 2.11.4.GIT