[CLEANUP] Remove commented code
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 14 Apr 2012 11:27:27 +0000 (13:27 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 14 Apr 2012 11:30:49 +0000 (13:30 +0200)
Don't read it, delete it.

Change-Id: Iff7ab4cc9af5265bef087bd9232319059a29210e
Releases: 6.0
Reviewed-on: http://review.typo3.org/10457
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_tcemain.php

index 0384780..4744179 100644 (file)
@@ -2567,17 +2567,6 @@ class t3lib_TCEmain {
                        // Only copy if the table is defined in $GLOBALS['TCA'], a uid is given and the record wasn't copied before:
                if ($GLOBALS['TCA'][$table] && $uid && !$this->isRecordCopied($table, $uid)) {
                        t3lib_div::loadTCA($table);
-                       /*
-                                  // In case the record to be moved turns out to be an offline version, we have to find the live version and work on that one (this case happens for pages with "branch" versioning type)
-                          if ($lookForLiveVersion = t3lib_BEfunc::getLiveVersionOfRecord($table,$uid,'uid'))   {
-                                  $uid = $lookForLiveVersion['uid'];
-                          }
-                                  // Get workspace version of the source record, if any: Then we will copy workspace version instead:
-                          if ($WSversion = t3lib_BEfunc::getWorkspaceVersionOfRecord($this->BE_USER->workspace, $table, $uid, 'uid,t3ver_oid'))        {
-                                  $uid = $WSversion['uid'];
-                          }
-                                  // Now, the $uid is the actual record we will copy while $origUid is the record we asked to get copied - but that could be a live version.
-   */
                        if ($this->doesRecordExist($table, $uid, 'show')) { // This checks if the record can be selected which is all that a copy action requires.
                                $fullLanguageCheckNeeded = ($table != 'pages');
                                if (($language > 0 && $this->BE_USER->checkLanguageAccess($language)) ||
@@ -7178,4 +7167,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tcemain.php']);
 }
 
-?>
+?>
\ No newline at end of file