Skip to content

Commit

Permalink
Remove not useless tm_source_file_ctags_init() indirection
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n authored and techee committed May 6, 2016
1 parent fdc4510 commit 4036d7d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
6 changes: 0 additions & 6 deletions tagmanager/src/tm_source_file.c
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions tagmanager/src/tm_source_file.h
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion tagmanager/src/tm_workspace.c
Expand Up @@ -31,6 +31,7 @@
#include <glib/gstdio.h>

#include "tm_workspace.h"
#include "tm_ctags_wrappers.h"
#include "tm_tag.h"
#include "tm_parser.h"

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 4036d7d

Please sign in to comment.