Remove some dead code.
This commit is contained in:
@@ -95,7 +95,6 @@ class Mustache_Parser
|
||||
$parent[Mustache_Tokenizer::NODES] = $nodes;
|
||||
|
||||
return $parent;
|
||||
break;
|
||||
|
||||
case Mustache_Tokenizer::T_PARTIAL:
|
||||
case Mustache_Tokenizer::T_PARTIAL_2:
|
||||
@@ -158,7 +157,6 @@ class Mustache_Parser
|
||||
}
|
||||
}
|
||||
|
||||
$next = null;
|
||||
if ($next = reset($tokens)) {
|
||||
// If we're on a new line, bail.
|
||||
if ($next[Mustache_Tokenizer::LINE] !== $this->lineNum) {
|
||||
|
||||
@@ -62,7 +62,7 @@ class Mustache_Test_FiveThree_Functional_MustacheSpecTest extends PHPUnit_Framew
|
||||
}
|
||||
|
||||
$func = $val['php'];
|
||||
$data[$key] = function($text = null) use ($func) {
|
||||
$data[$key] = function() use ($func) {
|
||||
return eval($func);
|
||||
};
|
||||
} elseif (is_array($val)) {
|
||||
|
||||
@@ -64,7 +64,7 @@ class Mustache_Test_Loader_FilesystemLoaderTest extends PHPUnit_Framework_TestCa
|
||||
*/
|
||||
public function testMissingBaseDirThrowsException()
|
||||
{
|
||||
$loader = new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/not_a_directory');
|
||||
new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/not_a_directory');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,7 +35,7 @@ class Mustache_Test_Loader_InlineLoaderTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testInvalidOffsetThrowsException()
|
||||
{
|
||||
$loader = new Mustache_Loader_InlineLoader(__FILE__, 'notanumber');
|
||||
new Mustache_Loader_InlineLoader(__FILE__, 'notanumber');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +43,7 @@ class Mustache_Test_Loader_InlineLoaderTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testInvalidFileThrowsException()
|
||||
{
|
||||
$loader = new Mustache_Loader_InlineLoader('notarealfile', __COMPILER_HALT_OFFSET__);
|
||||
new Mustache_Loader_InlineLoader('notarealfile', __COMPILER_HALT_OFFSET__);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user