[TASK] Remove unused workspace_preview DB field
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Authentication / BackendUserAuthentication.php
index 4fd0632..efd619a 100644 (file)
@@ -2225,21 +2225,6 @@ class BackendUserAuthentication extends AbstractUserAuthentication
         $this->workspaceRec = $this->checkWorkspace($this->workspace, '*');
     }
 
-    /**
-     * Setting workspace preview state for user:
-     *
-     * @param bool $previewState State of user preview.
-     */
-    public function setWorkspacePreview($previewState)
-    {
-        $this->user['workspace_preview'] = $previewState;
-        GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('be_users')->update(
-            'be_users',
-            ['workspace_preview_id' => $this->user['workspace_preview']],
-            ['uid' => (int)$this->user['uid']]
-        );
-    }
-
     /**
      * Return default workspace ID for user,
      * if EXT:workspaces is not installed the user will be pushed to the