remove broken optimization remnants (gonna rethink it for 3.7)
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Thu, 29 Apr 2004 08:15:45 +0000 (08:15 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Thu, 29 Apr 2004 08:15:45 +0000 (08:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@260 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_cs.php

index 4b7cc70..9728b01 100755 (executable)
@@ -586,11 +586,6 @@ class t3lib_cs {
                                                        } else break;
                                                }
 
-# Martin Kutschker...! this does not work! With russian UTF-8 converted back to windows-1251 it failed... So the old code is re-inserted.
-#                                              for ($bc=0; $ord & 0x80; $ord = $ord << 1) { $bc++; }   // calculate number of bytes
-#                                              $buf.=substr($str,$i,$bc);
-#                                              $i+=$bc-1;
-
                                                if (isset($this->parsedCharsets[$charset]['utf8'][$buf]))       {       // If the UTF-8 char-sequence is found then...
                                                        $mByte = $this->parsedCharsets[$charset]['utf8'][$buf]; // The local number
                                                        if ($mByte>255) {       // If the local number is greater than 255 we will need to split the byte (16bit word assumed) in two chars.