Skip to content

Commit

Permalink
Remove unused stuff from jitgraph (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Aug 28, 2018
1 parent 417671c commit 7f75fa4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions formats/JitGraph/SRF_JitGraph.php
Expand Up @@ -128,8 +128,6 @@ public function getName() {
}

protected function getResultText( SMWQueryResult $res, $outputmode ) {
global $smwgIQRunningNumber;

global $wgTitle, $wgOut;

if ( class_exists( 'ResourceLoader' ) ) {
Expand All @@ -139,13 +137,8 @@ protected function getResultText( SMWQueryResult $res, $outputmode ) {
//Include javascript files in the HTML header
$this->includeJS();
}

$key = 0;
// Create text graph
$legendInput = '';


$json = "[";
$debug = "";
$jsonLeafs = "";

while ( $row = $res->getNext() ) {
Expand All @@ -172,7 +165,6 @@ protected function getResultText( SMWQueryResult $res, $outputmode ) {

//Different color options and formatting for the page currently on.
if( strcmp($thisPageTitle, $text) == 0 && $this->m_graphRootNode) {
$rootNodeSize = $this->m_graphNodeSize + 5;
$json .= "{ \"id\":\"$text\", ";
$json .= "\"name\":\"$text\", ";
$json .= "\"data\":{\"\$color\": \"$this->m_rootNodeColor\", ";
Expand Down Expand Up @@ -212,7 +204,6 @@ protected function getResultText( SMWQueryResult $res, $outputmode ) {
$this->m_labelArray[] = $labelName;
}
$key = array_search( $labelName, $this->m_labelArray, true );
$color = $this->m_graphColors[$key];

if ( $this->m_graphLabel == true ) {

Expand Down

0 comments on commit 7f75fa4

Please sign in to comment.