[Bf-blender-cvs] [dc87958fd5d] grab_walk_fix: Cleanup: remove unmodified return variable.
Nicholas Rishel
noreply at git.blender.org
Sat Jul 24 00:27:51 CEST 2021
Commit: dc87958fd5df4dcad62ecda91975cfa904bed346
Author: Nicholas Rishel
Date: Mon Jul 19 11:30:34 2021 -0700
Branches: grab_walk_fix
https://developer.blender.org/rBdc87958fd5df4dcad62ecda91975cfa904bed346
Cleanup: remove unmodified return variable.
===================================================================
M intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index 0c3b3062126..8ab18d27e60 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -1072,8 +1072,6 @@ GHOST_TSuccess GHOST_WindowCocoa::setWindowCursorVisibility(bool visible)
GHOST_TSuccess GHOST_WindowCocoa::setWindowCursorGrab(GHOST_TGrabCursorMode mode)
{
- GHOST_TSuccess err = GHOST_kSuccess;
-
if (mode != GHOST_kGrabDisable) {
// No need to perform grab without warp as it is always on in OS X
if (mode != GHOST_kGrabNormal) {
@@ -1103,7 +1101,8 @@ GHOST_TSuccess GHOST_WindowCocoa::setWindowCursorGrab(GHOST_TGrabCursorMode mode
setCursorGrabAccum(0, 0);
m_cursorGrabBounds.m_l = m_cursorGrabBounds.m_r = -1; /* disable */
}
- return err;
+
+ return GHOST_kSuccess;
}
GHOST_TSuccess GHOST_WindowCocoa::setWindowCursorShape(GHOST_TStandardCursor shape)
More information about the Bf-blender-cvs
mailing list