From 02ed835fcaa1c9eebcd8a4fc224b308481de21dc Mon Sep 17 00:00:00 2001
From: Christian Kuhn <lolli@schwarzbu.ch>
Date: Sat, 14 Apr 2012 13:27:27 +0200
Subject: [PATCH] [CLEANUP] Remove commented code

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 | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/t3lib/class.t3lib_tcemain.php b/t3lib/class.t3lib_tcemain.php
index 038478093d95..4744179d8d27 100644
--- a/t3lib/class.t3lib_tcemain.php
+++ b/t3lib/class.t3lib_tcemain.php
@@ -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
-- 
GitLab