Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/windowmanager/intern/wm.c')
-rw-r--r--source/blender/windowmanager/intern/wm.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c
index 10c3735685c..c6c67e22bfd 100644
--- a/source/blender/windowmanager/intern/wm.c
+++ b/source/blender/windowmanager/intern/wm.c
@@ -175,26 +175,6 @@ int WM_menutype_add(MenuType* mt)
return 1;
}
-/* inefficient but only used for tooltip code */
-int WM_menutype_contains(MenuType* mt)
-{
- int found= FALSE;
-
- if(mt) {
- GHashIterator *iter= BLI_ghashIterator_new(menutypes_hash);
-
- for( ; !BLI_ghashIterator_isDone(iter); BLI_ghashIterator_step(iter)) {
- if(mt == BLI_ghashIterator_getValue(iter)) {
- found= TRUE;
- break;
- }
- }
- BLI_ghashIterator_free(iter);
- }
-
- return found;
-}
-
void WM_menutype_freelink(MenuType* mt)
{
BLI_ghash_remove(menutypes_hash, mt->idname, NULL, (GHashValFreeFP)MEM_freeN);