Remove not useless tm_source_file_ctags_init() indirection

This commit is contained in:
Colomban Wendling 2016-05-04 19:09:17 +02:00 committed by Jiří Techet
parent fdc4510864
commit 4036d7d18a
3 changed files with 2 additions and 9 deletions

View File

@ -661,12 +661,6 @@ static gboolean tm_source_file_tags(const tagEntryInfo *const tag,
return TRUE; 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. */ /* Initializes a TMSourceFile structure from a file name. */
static gboolean tm_source_file_init(TMSourceFile *source_file, const char *file_name, static gboolean tm_source_file_init(TMSourceFile *source_file, const char *file_name,
const char* name) const char* name)

View File

@ -38,8 +38,6 @@ typedef struct TMSourceFile
GType tm_source_file_get_type(void); 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); TMSourceFile *tm_source_file_new(const char *file_name, const char *name);
void tm_source_file_free(TMSourceFile *source_file); void tm_source_file_free(TMSourceFile *source_file);

View File

@ -31,6 +31,7 @@
#include <glib/gstdio.h> #include <glib/gstdio.h>
#include "tm_workspace.h" #include "tm_workspace.h"
#include "tm_ctags_wrappers.h"
#include "tm_tag.h" #include "tm_tag.h"
#include "tm_parser.h" #include "tm_parser.h"
@ -77,7 +78,7 @@ static gboolean tm_create_workspace(void)
theWorkspace->typename_array = g_ptr_array_new(); theWorkspace->typename_array = g_ptr_array_new();
theWorkspace->global_typename_array = g_ptr_array_new(); theWorkspace->global_typename_array = g_ptr_array_new();
tm_source_file_ctags_init(); tm_ctags_init();
return TRUE; return TRUE;
} }