diff options
author | Peter Kim <pk15950@gmail.com> | 2021-10-05 10:54:25 +0300 |
---|---|---|
committer | Peter Kim <pk15950@gmail.com> | 2021-10-05 10:54:25 +0300 |
commit | 7a66a9f22e6614b88ec262cceefa196906dd434d (patch) | |
tree | 24c1bbe7c6c13a25876a6ddd52268eec7fce5024 | |
parent | 1d49293b80446b89b5b12fa0eeefaf14e5051e48 (diff) |
Cleanup: remove unused parameter
-rw-r--r-- | source/blender/editors/include/ED_screen.h | 4 | ||||
-rw-r--r-- | source/blender/editors/screen/area.c | 6 | ||||
-rw-r--r-- | source/blender/windowmanager/xr/intern/wm_xr_session.c | 2 |
3 files changed, 5 insertions, 7 deletions
diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index 0de6907e677..b6936892803 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -178,9 +178,7 @@ void ED_area_update_region_sizes(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area); bool ED_area_has_shared_border(struct ScrArea *a, struct ScrArea *b); -ScrArea *ED_area_offscreen_create(struct wmWindowManager *wm, - struct wmWindow *win, - eSpace_Type space_type); +ScrArea *ED_area_offscreen_create(struct wmWindow *win, eSpace_Type space_type); void ED_area_offscreen_free(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area); diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index d5456482d67..9967d36fd40 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -2001,7 +2001,7 @@ void ED_area_init(wmWindowManager *wm, wmWindow *win, ScrArea *area) } } -static void area_offscreen_init(wmWindowManager *wm, ScrArea *area) +static void area_offscreen_init(ScrArea *area) { area->type = BKE_spacetype_from_id(area->spacetype); @@ -2015,13 +2015,13 @@ static void area_offscreen_init(wmWindowManager *wm, ScrArea *area) } } -ScrArea *ED_area_offscreen_create(wmWindowManager *wm, wmWindow *win, eSpace_Type space_type) +ScrArea *ED_area_offscreen_create(wmWindow *win, eSpace_Type space_type) { ScrArea *area = MEM_callocN(sizeof(*area), __func__); area->spacetype = space_type; screen_area_spacelink_add(WM_window_get_active_scene(win), area, space_type); - area_offscreen_init(wm, area); + area_offscreen_init(area); return area; } diff --git a/source/blender/windowmanager/xr/intern/wm_xr_session.c b/source/blender/windowmanager/xr/intern/wm_xr_session.c index 1e8cda30121..819057890fd 100644 --- a/source/blender/windowmanager/xr/intern/wm_xr_session.c +++ b/source/blender/windowmanager/xr/intern/wm_xr_session.c @@ -590,7 +590,7 @@ void wm_xr_session_actions_update(wmWindowManager *wm) if (win) { /* Ensure an XR area exists for events. */ if (!xr->runtime->area) { - xr->runtime->area = ED_area_offscreen_create(wm, win, SPACE_VIEW3D); + xr->runtime->area = ED_area_offscreen_create(win, SPACE_VIEW3D); } /* Implemented in D10944. */ |