Skip to content

Commit

Permalink
Merge pull request #20709 from colemanw/api4CleanupBridgeJoinable
Browse files Browse the repository at this point in the history
APIv4 - Remove POC code leftover from early alpha development
  • Loading branch information
eileenmcnaughton authored Jun 25, 2021
2 parents 055a3b1 + 4a21520 commit 992d951
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 144 deletions.
50 changes: 0 additions & 50 deletions Civi/Api4/Event/Subscriber/ActivitySchemaMapSubscriber.php

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions Civi/Api4/Service/Schema/Joinable/BridgeJoinable.php

This file was deleted.

11 changes: 0 additions & 11 deletions Civi/Api4/Service/Schema/SchemaMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

namespace Civi\Api4\Service\Schema;

use Civi\Api4\Service\Schema\Joinable\BridgeJoinable;

class SchemaMap {

const MAX_JOIN_DEPTH = 3;
Expand All @@ -40,15 +38,6 @@ public function getPath($baseTableName, $targetTableAlias) {

$this->findPaths($table, $targetTableAlias, 1, $path);

foreach ($path as $index => $pathLink) {
if ($pathLink instanceof BridgeJoinable) {
$start = array_slice($path, 0, $index);
$middle = [$pathLink->getMiddleLink()];
$end = array_slice($path, $index, count($path) - $index);
$path = array_merge($start, $middle, $end);
}
}

return $path;
}

Expand Down

0 comments on commit 992d951

Please sign in to comment.