Merging r42533 through r42601 from trunk into soc-2011-tomato
[blender.git] / source / blender / windowmanager / intern / wm.c
index 5beb07a1ed0bbfda9d9ce680b011673f12b4b71b..c6c67e22bfd9d1b9b00a0a9ba42ca6f39c8dc43e 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * ***** BEGIN GPL LICENSE BLOCK *****
  *
  * This program is free software; you can redistribute it and/or
@@ -177,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);