Skip to content

Commit 8d24c26

Browse files
authored
Remove unused code (#9)
1 parent 5bdbe19 commit 8d24c26

File tree

4 files changed

+0
-72
lines changed

4 files changed

+0
-72
lines changed

HTML/Template/IT.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,6 @@ class HTML_Template_IT
299299
*/
300300
var $touchedBlocks = array();
301301

302-
/**
303-
* List of blocks which should not be shown even if not "empty"
304-
* @var array $_hiddenBlocks
305-
* @see hideBlock(), $removeEmptyBlocks
306-
* @access private
307-
*/
308-
var $_hiddenBlocks = array();
309-
310302
/**
311303
* Variable cache.
312304
*

package.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ There are two classes to use for templating. HTML_Template_IT is used for basic
6868
<file name="tests/templates/blocks.html" role="test" />
6969
<file name="tests/templates/bug_9853_01.tpl" role="test" />
7070
<file name="tests/templates/bug_9853_02.tpl" role="test" />
71-
<file name="tests/templates/globals.html" role="test" />
7271
<file name="tests/templates/include.html" role="test" />
7372
<file name="tests/templates/loadtemplatefile.html" role="test" />
7473
<file name="tests/templates/placeholderreplacementscope.html" role="test" />

tests/ITTest.php

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -172,56 +172,6 @@ function testTouchBlock()
172172

173173
// Not available in stock class
174174

175-
/**
176-
*
177-
*/
178-
/*
179-
function testHideBlock()
180-
{
181-
if (!$this->_methodExists('hideBlock')) {
182-
return;
183-
}
184-
$result = $this->tpl->loadTemplateFile('blockiteration.html', false, true);
185-
if (PEAR::isError($result)) {
186-
$this->assertTrue(false, 'Error loading template file: '. $result->getMessage());
187-
}
188-
$this->tpl->setVariable(array(
189-
'outer' => 'data',
190-
'inner' => 'stuff'
191-
));
192-
// inner_block is not empty, but should be removed nonetheless
193-
$this->tpl->hideBlock('inner_block');
194-
$this->assertEquals('data#', $this->_stripWhitespace($this->tpl->get()));
195-
}
196-
*/
197-
/**
198-
*
199-
*/
200-
/*
201-
function testSetGlobalVariable()
202-
{
203-
if (!$this->_methodExists('setGlobalVariable')) {
204-
return;
205-
}
206-
$result = $this->tpl->loadTemplateFile('globals.html', false, true);
207-
if (PEAR::isError($result)) {
208-
$this->assertTrue(false, 'Error loading template file: '. $result->getMessage());
209-
}
210-
$this->tpl->setGlobalVariable('glob', 'glob');
211-
// {var2} is not, block_two should be removed
212-
$this->tpl->setVariable(array(
213-
'var1' => 'one',
214-
'var3' => 'three'
215-
));
216-
for ($i = 0; $i < 3; $i++) {
217-
$this->tpl->setVariable('var4', $i + 1);
218-
$this->tpl->parse('block_four');
219-
} // for
220-
$this->assertEquals('glob:one#glob:three|glob:1|glob:2|glob:3#', $this->_stripWhitespace($this->tpl->get()));
221-
}
222-
*/
223-
224-
225175
/**
226176
* Test for bug #9501. preg_replace treat $<NUM> and \<NUM> as
227177
* backreferences. IT escapes them.

tests/templates/globals.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)