diff --git a/plugins/SegmentEditor/API.php b/plugins/SegmentEditor/API.php index 68a0a87db85..08b648d7813 100644 --- a/plugins/SegmentEditor/API.php +++ b/plugins/SegmentEditor/API.php @@ -401,18 +401,6 @@ public function getAll($idSite = false) $segments = $this->sortSegmentsCreatedByUserFirst($segments); - $model = new \Piwik\Plugins\SitesManager\Model(); - $allIdSites = $model->getSitesId(); - foreach ($segments as &$segmentInfo) { - $idSites = !empty($segmentInfo['enable_only_idsite']) ? [(int) $segmentInfo['enable_only_idsite']] : $allIdSites; - try { - $segmentObj = new Segment($segmentInfo['definition'], $idSites); - $segmentInfo['hash'] = $segmentObj->getHash(); - } catch (\Exception $ex) { - $segmentInfo['hash'] = 'INVALID SEGMENT'; - } - } - return $segments; }