Remove unused functions

pull/2487/head
jmontoyaa 9 years ago
parent 1d928c9fe2
commit 3e7455bbb6
  1. 24
      main/inc/lib/display.lib.php
  2. 13
      tests/main/inc/lib/display.lib.test.php
  3. 24
      tests/phpunit/classes/DisplayTest.lib.php

@ -634,19 +634,6 @@ class Display
return '<a href="'.$hmail.'"'.$style_class.' class="clickable_email_link">'.$icon_html_source.'</a>';
}
/**
* Creates a hyperlink to the platform homepage.
* @param string $name, the visible name of the hyperlink, default is sitename
* @return string with html code for hyperlink
*/
public static function get_platform_home_link_html($name = '')
{
if ($name == '') {
$name = api_get_setting('siteName');
}
return '<a href="'.api_get_path(WEB_PATH).'index.php">'.$name.'</a>';
}
/**
* Prints an <option>-list with all letters (A-Z).
* @param char $selected_letter The letter that should be selected
@ -709,7 +696,7 @@ class Display
* Gets the path of an icon
*
* @param string $icon
* @param string $size
* @param int $size
*
* @return string
*/
@ -1126,7 +1113,7 @@ class Display
*/
public static function grid_html($div_id)
{
$table = self::tag('table','', array('id' => $div_id));
$table = self::tag('table','', array('id' => $div_id));
$table .= self::tag('div','', array('id' => $div_id.'_pager'));
return $table;
}
@ -1716,11 +1703,6 @@ class Display
return $html;
}
public static function return_default_table_class()
{
return 'table table-bordered';
}
/**
* @param string $title
* @param string $second_title
@ -2126,7 +2108,7 @@ class Display
* @param int $fixedValue
* @return string
*/
static function parsePaginationItem(
public static function parsePaginationItem(
$itemId,
$isCurrent,
$conditions,

@ -236,19 +236,6 @@ class TestDisplay extends UnitTestCase {
//var_dump($res);
}
/**
* Create a hyperlink to the platform homepage.
* @param string $name, the visible name of the hyperlink, default is sitename
* @return string with html code for hyperlink
*/
public function testget_platform_home_link_html() {
ob_start();
$res=Display::get_platform_home_link_html();
ob_end_clean();
$this->assertTrue(is_string($res));
//var_dump($res);
}
/**
* This public function returns the htmlcode for an icon
*

@ -278,18 +278,6 @@ class DisplayTest extends PHPUnit_Framework_TestCase
);
}
/**
* @covers Display::get_platform_home_link_html
* @todo Implement testGet_platform_home_link_html().
*/
public function testGet_platform_home_link_html()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @covers Display::get_alphabet_options
* @todo Implement testGet_alphabet_options().
@ -543,18 +531,6 @@ class DisplayTest extends PHPUnit_Framework_TestCase
);
}
/**
* @covers Display::return_default_table_class
* @todo Implement testReturn_default_table_class().
*/
public function testReturn_default_table_class()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* @covers Display::page_header
* @todo Implement testPage_header().

Loading…
Cancel
Save