Revert to master - those changes are globally valid, but remain incomplete,
[blender.git] / source / blender / blenkernel / intern / screen.c
index 4dd67f5ecff2bd6fcd0b97372e66dcb23687cf2d..7401ef28f62808afcc3d70bda624304be61daf63 100644 (file)
@@ -357,19 +357,11 @@ void BKE_screen_area_free(ScrArea *sa)
        BLI_freelistN(&sa->actionzones);
 }
 
-/**
- * Free (or release) any data used by this screen (does not free the screen itself).
- *
- * \param sc The screen to free.
- * \param do_id_user When \a true, ID datablocks used (referenced) by this screen are 'released'
- *                   (their user count is decreased).
- */
-void BKE_screen_free(bScreen *sc, const bool UNUSED(do_id_user))
+/* don't free screen itself */
+void BKE_screen_free(bScreen *sc)
 {
        ScrArea *sa, *san;
        ARegion *ar;
-
-       /* No animdata here. */
        
        for (ar = sc->regionbase.first; ar; ar = ar->next)
                BKE_area_region_free(NULL, ar);