From 0238e57a929e8db3ff9d7e8d0dae689755ff50fe Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Wed, 5 Jun 2019 22:23:38 -0700 Subject: [PATCH] Removed some unused code bits --- lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php | 3 --- lib/Doctrine/DBAL/Platforms/AbstractPlatform.php | 10 ---------- .../DBAL/Sharding/SQLAzure/SQLAzureShardManager.php | 3 --- 3 files changed, 16 deletions(-) diff --git a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php index d0ff2d237ec..9972c9df7aa 100644 --- a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php +++ b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php @@ -60,9 +60,6 @@ class OCI8Statement implements IteratorAggregate, Statement /** @var OCI8Connection */ protected $_conn; - /** @var string */ - protected static $_PARAM = ':param'; - /** @var int[] */ protected static $fetchModeMap = [ FetchMode::MIXED => OCI_BOTH, diff --git a/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php b/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php index 9b3f5a1c880..57c37a6c570 100644 --- a/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php +++ b/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php @@ -1843,16 +1843,6 @@ protected function getRenameIndexSQL(string $oldIndexName, Index $index, string ]; } - /** - * Common code for alter table statement generation that updates the changed Index and Foreign Key definitions. - * - * @return string[] - */ - protected function _getAlterTableIndexForeignKeySQL(TableDiff $diff) : array - { - return array_merge($this->getPreAlterTableIndexForeignKeySQL($diff), $this->getPostAlterTableIndexForeignKeySQL($diff)); - } - /** * Gets declaration of a number of fields in bulk. * diff --git a/lib/Doctrine/DBAL/Sharding/SQLAzure/SQLAzureShardManager.php b/lib/Doctrine/DBAL/Sharding/SQLAzure/SQLAzureShardManager.php index 3463f4f09ba..0b00e9ade13 100644 --- a/lib/Doctrine/DBAL/Sharding/SQLAzure/SQLAzureShardManager.php +++ b/lib/Doctrine/DBAL/Sharding/SQLAzure/SQLAzureShardManager.php @@ -11,7 +11,6 @@ use Doctrine\DBAL\Sharding\Exception\MissingDistributionType; use Doctrine\DBAL\Sharding\ShardingException; use Doctrine\DBAL\Sharding\ShardManager; -use Doctrine\DBAL\Types\Type; use RuntimeException; use function sprintf; @@ -192,8 +191,6 @@ public function queryAll(string $sql, array $params = [], array $types = []) : a */ public function splitFederation($splitDistributionValue) : void { - $type = Type::getType($this->distributionType); - $sql = 'ALTER FEDERATION ' . $this->getFederationName() . ' ' . 'SPLIT AT (' . $this->getDistributionKey() . ' = ' . $this->conn->quote($splitDistributionValue) . ')';