Commit 4997bdb4 authored by catch's avatar catch
Browse files

Issue #3261264 by andypost: Remove deprecated code from...

Issue #3261264 by andypost: Remove deprecated code from \Drupal\Core\Cache\DatabaseCacheTagsChecksum
parent 27af96d7
Loading
Loading
Loading
Loading
+0 −24
Original line number Diff line number Diff line
@@ -117,30 +117,6 @@ public function schemaDefinition() {
    return $schema;
  }

  /**
   * Act on an exception when cache might be stale.
   *
   * If the {cachetags} table does not yet exist, that's fine but if the table
   * exists and yet the query failed, then the cache is stale and the
   * exception needs to propagate.
   *
   * @param \Exception $e
   *   The exception.
   *
   * @throws \Exception
   *
   * @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. There is no
   *   replacement.
   *
   * @see https://www.drupal.org/node/3243014
   */
  protected function catchException(\Exception $e) {
    @trigger_error('\Drupal\Core\Cache\DatabaseCacheTagsChecksum::catchException is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. There is no replacement. See https://www.drupal.org/node/3243014', E_USER_DEPRECATED);
    if ($this->connection->schema()->tableExists('cachetags')) {
      throw $e;
    }
  }

  /**
   * {@inheritdoc}
   */