Skip to content

Commit d974c63

Browse files
committed
Remove unused configuration properties and clean up related code
1 parent da1590e commit d974c63

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/ParsedownExtended.php

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ class ParsedownExtended extends \ParsedownExtendedParentAlias
3636
/** @var callable|null $createAnchorIDCallback Callback function for anchor creation */
3737
private $createAnchorIDCallback = null;
3838

39-
/** @var array $config Configuration options */
40-
private array $config;
41-
42-
/** @var array $configSchema Schema for validating configuration options */
43-
private array $configSchema;
44-
45-
/** @var object|null $configHandler Cached configuration handler */
46-
private $configHandler = null;
47-
4839
/** @var bool $legacyMode Flag indicating if legacy compatibility mode is enabled */
4940
private bool $legacyMode = false;
5041

@@ -173,9 +164,6 @@ class ParsedownExtended extends \ParsedownExtendedParentAlias
173164
/** @var array $PATH_TO_BIT Stores a mapping of file or directory paths to their corresponding bit values. */
174165
private static array $PATH_TO_BIT = [];
175166

176-
/** @var array $BIT_TO_PATH Stores a mapping of bit values to their corresponding file or directory paths. */
177-
private static array $BIT_TO_PATH = [];
178-
179167
/** @var array $FLAT_SCHEMA Stores a flat schema of configuration options for easy access. */
180168
private static array $FLAT_SCHEMA = [];
181169

@@ -1677,10 +1665,10 @@ protected function inlineEmojis(array $Excerpt): ?array
16771665
*
16781666
* Handles parsing of attribute data for headings if the feature is enabled.
16791667
*
1680-
* @since 0.1.0
1681-
*
16821668
* @param string $attributeString The attribute string to be parsed.
16831669
* @return array The parsed attributes or an empty array if not applicable.
1670+
*@since 0.1.0
1671+
*
16841672
*/
16851673
protected function parseAttributeData($attributeString)
16861674
{
@@ -3482,7 +3470,6 @@ private function registerBoolean(string $path, bool $default, int &$bitIndex): v
34823470
}
34833471
$bit = 1 << $bitIndex++;
34843472
self::$PATH_TO_BIT[$path] = $bit;
3485-
self::$BIT_TO_PATH[$bit] = $path;
34863473
self::$FLAT_SCHEMA[$path] = ['type' => 'boolean', 'default' => $default];
34873474
if ($default) {
34883475
self::$DEFAULT_BITS |= $bit;

0 commit comments

Comments
 (0)