Outliner: Remove User Preferences
[blender.git] / source / blender / editors / space_outliner / outliner_tree.c
index 78956db6de269d1bf803b43adad783b2ea487249..be60312b1105cdc6ca6d04f1b4b6d56979749e2e 100644 (file)
@@ -2292,18 +2292,6 @@ void outliner_build_tree(Main *mainvar, Scene *scene, ViewLayer *view_layer, Spa
                        tselem->flag &= ~TSE_CLOSED;
                }
        }
-       else if (soops->outlinevis == SO_USERDEF) {
-               PointerRNA userdefptr;
-
-               RNA_pointer_create(NULL, &RNA_UserPreferences, &U, &userdefptr);
-
-               ten = outliner_add_element(soops, &soops->tree, (void *)&userdefptr, NULL, TSE_RNA_STRUCT, -1);
-
-               if (show_opened) {
-                       tselem = TREESTORE(ten);
-                       tselem->flag &= ~TSE_CLOSED;
-               }
-       }
        else if (soops->outlinevis == SO_ID_ORPHANS) {
                outliner_add_orphaned_datablocks(mainvar, soops);
        }