Skip to content

Commit

Permalink
Remove unused code (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Aug 28, 2018
1 parent 249923d commit ac15b41
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 15 deletions.
2 changes: 0 additions & 2 deletions formats/graphviz/SRF_Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,8 @@ protected function getResultText( SMWQueryResult $res, $outputmode ) {
//
// GraphViz settings
//
global $wgGraphVizSettings;
$this->isHTML = true;


//
// Iterate all rows in result set
//
Expand Down
1 change: 0 additions & 1 deletion formats/jqplot/SRF_jqPlotSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ private function getFormatSettings( $data, $options ) {

// Init
$dataSet = [];
$grid = [];
$options['mode'] = 'series';
$options['autoscale'] = false;

Expand Down
1 change: 0 additions & 1 deletion formats/outline/SRF_Outline.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ protected function getResultText( SMWQueryResult $res, $outputmode ) {
while ( $row = $res->getNext() ) {
$item = new SRFOutlineItem( $row );
foreach ( $row as $field ) {
$first = true;
$field_name = $field->getPrintRequest()->getText( SMW_OUTPUT_HTML );
if ( in_array( $field_name, $this->mOutlineProperties ) ) {
while ( ( $object = $field->getNextDataValue() ) !== false ) {
Expand Down
2 changes: 0 additions & 2 deletions formats/tagcloud/TagCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ private function getTagCloud( array $tags ) {
// Initialize
$htmlTags = [];
$processing = '';
$htmlSTags = '';
$htmlCTags = '';

// Count actual output and store div identifier
$tagId = 'srf-' . uniqid();
Expand Down
1 change: 0 additions & 1 deletion formats/timeline/SRF_Timeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ protected function getEventsHTML( SMWQueryResult $res, $outputmode, $isEventline
if ( $this->mTemplate != '' ) {
$this->hasTemplates = true;
$template_text = '';
$wikitext = '';
$i = 0;
}

Expand Down
3 changes: 0 additions & 3 deletions formats/timeseries/SRF_Timeseries.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,10 @@ protected function getAggregatedTimeSeries( SMWQueryResult $result, $outputMode

while ( /* array of SMWResultArray */ $row = $result->getNext() ) { // Objects (pages)
$timeStamp = '';
$value = '';
$series = [];

foreach ( $row as /* SMWResultArray */ $field ) {
$value = [];
$sum = [];
$rowSum = [];

// Group by subject (page object) or property
if ( $this->params['group'] == 'subject' ){
Expand Down
7 changes: 2 additions & 5 deletions formats/tree/TreeResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,9 @@ protected function buildTreeFromNodeList( $rootHash, $nodes ) {

try {
if ( array_key_exists( $parentHash, $nodes ) ) {
$errorCode = $nodes[ $parentHash ]->addChild( $node );
$nodes[ $parentHash ]->addChild( $node );
} elseif ( !$isRootSpecified ) {
$errorCode = $root->addChild( $node );
} else {
// Drop node. It is not part of the tree.
$errorCode = null;
$root->addChild( $node );
}
} catch ( Exception $e ) {
$this->addError( $e->getMessage(), $node->getResultSubject()->getTitle()->getPrefixedText() );
Expand Down

0 comments on commit ac15b41

Please sign in to comment.