Skip to content

Commit

Permalink
CHG: removed legacy tracking code
Browse files Browse the repository at this point in the history
  • Loading branch information
tuegeb committed Jul 11, 2016
1 parent 51acc9b commit b3a87f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
3 changes: 0 additions & 3 deletions FACTFinder/Adapter/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,11 @@ private function createResult()
//init default values
$records = array();
$resultCount = 0;
$refKey = null;

$jsonData = $this->getResponseContent();

if ($this->isValidResponse($jsonData)) {
$searchResultData = $jsonData['searchResult'];
$refKey = $searchResultData['refKey'];

if (!empty($searchResultData['records']))
{
Expand All @@ -168,7 +166,6 @@ private function createResult()
return FF::getInstance(
'Data\Result',
$records,
$refKey,
$resultCount
);
}
Expand Down
15 changes: 0 additions & 15 deletions FACTFinder/Data/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
*/
class Result extends \ArrayIterator
{
/**
* @var string
*/
private $refKey;

/**
* @var int
Expand All @@ -18,7 +14,6 @@ class Result extends \ArrayIterator

/**
* @param Record[] $records The Record objects to add to the result.
* @param string $refKey
* @param int $foundRecordsCount Total number of records found for the
* search these records are from. This can be greater than
* count($records), because $records may just be the records from a
Expand All @@ -27,11 +22,9 @@ class Result extends \ArrayIterator
*/
public function __construct(
array $records,
$refKey = '',
$foundRecordsCount = 0
) {
parent::__construct($records);
$this->refKey = (string)$refKey;
$this->foundRecordsCount = (int)$foundRecordsCount;
}

Expand All @@ -43,12 +36,4 @@ public function getFoundRecordsCount()
return $this->foundRecordsCount;
}

/**
* @return string
*/
public function getRefKey()
{
return $this->refKey;
}

}

0 comments on commit b3a87f1

Please sign in to comment.