Skip to content

Commit

Permalink
Remove PHP user deprecation errors
Browse files Browse the repository at this point in the history
Remove these errors pending proper discussion.
These errors could  be a problem for installations that have HTML errors on
in production. Since DokuWikis is often used in smaller and private
contexts, this is a scenario that should be considered.
  • Loading branch information
micgro42 committed Feb 25, 2019
1 parent 0c5eb5e commit 27cff89
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions inc/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ class cache extends \dokuwiki\Cache\Cache

public function __construct($key, $ext)
{
trigger_error(
'cache is deprecated since 2019-02-02. Use \dokuwiki\Cache\Cache instead',
E_USER_DEPRECATED
);
DebugHelper::dbgDeprecatedFunction(dokuwiki\Cache\Cache::class);
parent::__construct($key, $ext);
}
Expand All @@ -31,10 +27,6 @@ class cache_parser extends \dokuwiki\Cache\CacheParser

public function __construct($id, $file, $mode)
{
trigger_error(
'cache_parser is deprecated since 2019-02-02. Use \dokuwiki\Cache\CacheParser instead',
E_USER_DEPRECATED
);
DebugHelper::dbgDeprecatedFunction(CacheParser::class);
parent::__construct($id, $file, $mode);
}
Expand All @@ -49,10 +41,6 @@ class cache_renderer extends \dokuwiki\Cache\CacheRenderer

public function __construct($id, $file, $mode)
{
trigger_error(
'cache_renderer is deprecated since 2019-02-02. Use \dokuwiki\Cache\CacheRenderer instead',
E_USER_DEPRECATED
);
DebugHelper::dbgDeprecatedFunction(CacheRenderer::class);
parent::__construct($id, $file, $mode);
}
Expand All @@ -65,10 +53,6 @@ class cache_instructions extends \dokuwiki\Cache\CacheInstructions
{
public function __construct($id, $file)
{
trigger_error(
'cache_instructions is deprecated since 2019-02-02. Use \dokuwiki\Cache\CacheInstructions instead',
E_USER_DEPRECATED
);
DebugHelper::dbgDeprecatedFunction(CacheInstructions::class);
parent::__construct($id, $file);
}
Expand Down

0 comments on commit 27cff89

Please sign in to comment.