[TASK] Remove unused code from logDeprecatedFunction()
authorMarkus Klein <klein.t3@mfc-linz.at>
Fri, 21 Sep 2012 11:40:41 +0000 (13:40 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 22 Sep 2012 17:09:55 +0000 (19:09 +0200)
Resolves: #41162
Releases: 6.0

Change-Id: Id3f2dbe94fbc433e13b908ebf0f2645dded9336b
Reviewed-on: http://review.typo3.org/14821
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Utility/GeneralUtility.php

index bdc9326..2937747 100644 (file)
@@ -4855,13 +4855,7 @@ Connection: close
                if (preg_match('/@deprecated\\s+(.*)/', $function->getDocComment(), $match)) {
                        $msg = $match[1];
                }
-               // Trigger PHP error with a short message: <function> is deprecated (called from <source>, defined in <source>)
-               $errorMsg = 'Function ' . $trail[1]['function'];
-               if ($trail[1]['class']) {
-                       $errorMsg .= ' of class ' . $trail[1]['class'];
-               }
-               $errorMsg .= ' is deprecated (called from ' . $trail[1]['file'] . '#' . $trail[1]['line'] . ', defined in ' . $function->getFileName() . '#' . $function->getStartLine() . ')';
-               // Write a longer message to the deprecation log: <function> <annotion> - <trace> (<source>)
+                       // Write a longer message to the deprecation log: <function> <annotion> - <trace> (<source>)
                $logMsg = $trail[1]['class'] . $trail[1]['type'] . $trail[1]['function'];
                $logMsg .= '() - ' . $msg . ' - ' . \TYPO3\CMS\Core\Utility\DebugUtility::debugTrail();
                $logMsg .= ' (' . substr($function->getFileName(), strlen(PATH_site)) . '#' . $function->getStartLine() . ')';
@@ -4991,4 +4985,4 @@ Connection: close
 }
 
 
-?>
\ No newline at end of file
+?>