Disallow the possibility to use tm_tags_find() on unsorted array
commit2328f84e37328a8d2e8a5fa58dcf8a836885fa41
authorJiří Techet <techet@gmail.com>
Sat, 9 May 2015 11:19:07 +0000 (9 13:19 +0200)
committerJiří Techet <techet@gmail.com>
Tue, 14 Jul 2015 07:46:59 +0000 (14 09:46 +0200)
treedb8d12119c020f3b4d9dd3df7270be8ac7cdcb0d
parent99e222ea370933ddb28f4a103b28de48b842ba2d
Disallow the possibility to use tm_tags_find() on unsorted array

This function won't work correctly on unsorted array because the second
part of the function (after the tags search) expects the array is sorted
by name. The only user of this is tm_source_file_set_tag_arglist() in which
we can go through the tags manually by ourselves (it needs only a single
value so the original behavior of tm_tags_find() wasn't a problem).
Eliminate the tags_search() function as it isn't needed any more.

Just cleanup, not functional change.
tagmanager/src/tm_source_file.c
tagmanager/src/tm_tag.c
tagmanager/src/tm_tag.h
tagmanager/src/tm_workspace.c