diff --git a/Civi/Payment/PropertyBag.php b/Civi/Payment/PropertyBag.php index 73179edb78ce..65b789885e1f 100644 --- a/Civi/Payment/PropertyBag.php +++ b/Civi/Payment/PropertyBag.php @@ -215,19 +215,6 @@ public function offsetUnset ($offset) { unset($this->props['default'][$prop]); } - /** - * Save any legacy warnings to log. - * - * Called as a shutdown function. - */ - public static function writeLegacyWarnings() { - if (!empty(static::$legacyWarnings)) { - $message = "Civi\\Payment\\PropertyBag related deprecation warnings:\n" - . implode("\n", array_keys(static::$legacyWarnings)); - Civi::log()->warning($message, ['civi.tag' => 'deprecated']); - } - } - /** * @param string $prop * @param bool $silent if TRUE return NULL instead of throwing an exception. This is because offsetExists should be safe and not throw exceptions.