Remove code_index__hash_file, it no longer does anything
This commit is contained in:
parent
507f4a9d04
commit
4d356ef7b9
|
@ -208,20 +208,6 @@ code_index_unlock(void){
|
||||||
system_mutex_release(global_code_index.mutex);
|
system_mutex_release(global_code_index.mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
function void
|
|
||||||
code_index__hash_file(Code_Index_File *file){
|
|
||||||
// TODO(PS): @RemoveWholeFileHashing - this isn't necessary since, to support incremental updates
|
|
||||||
// we insert nodes into the hash table when the node is created
|
|
||||||
#if 0
|
|
||||||
for (Code_Index_Note *node = file->note_list.first;
|
|
||||||
node != 0;
|
|
||||||
node = node->next){
|
|
||||||
Code_Index_Note_List_New *list = code_index__list_from_string(node->text);
|
|
||||||
code_index_note_list_hash_insert(list, list->sentinel_last.prev_in_hash, node);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
function void
|
function void
|
||||||
code_index__clear_file(Code_Index_File *file){
|
code_index__clear_file(Code_Index_File *file){
|
||||||
for (Code_Index_Note *node = file->note_list.first;
|
for (Code_Index_Note *node = file->note_list.first;
|
||||||
|
@ -249,8 +235,6 @@ code_index_set_file(Buffer_ID buffer, Arena arena, Code_Index_File *index){
|
||||||
}
|
}
|
||||||
storage->arena = arena;
|
storage->arena = arena;
|
||||||
storage->file = index;
|
storage->file = index;
|
||||||
|
|
||||||
code_index__hash_file(index);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function void
|
function void
|
||||||
|
|
Loading…
Reference in New Issue