aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2014-08-07 18:01:11 +0200
committerDhruv Goel <dhruv.goel92@gmail.com>2014-08-07 18:01:11 +0200
commitba2c40cde939a3b88fc1ce3d3981b0b1d5ad7246 (patch)
tree2557e4ac3b2adde86ce088517b126c7fd9b01f70
parenta8dee3fb65fbc16115634715da3a8eff2bbbce04 (diff)
parentf6f665784232a34496b0c943b679aa27d04b0f39 (diff)
downloadforums-ba2c40cde939a3b88fc1ce3d3981b0b1d5ad7246.tar
forums-ba2c40cde939a3b88fc1ce3d3981b0b1d5ad7246.tar.gz
forums-ba2c40cde939a3b88fc1ce3d3981b0b1d5ad7246.tar.bz2
forums-ba2c40cde939a3b88fc1ce3d3981b0b1d5ad7246.tar.xz
forums-ba2c40cde939a3b88fc1ce3d3981b0b1d5ad7246.zip
Merge pull request #2821 from bantu/ticket/12903
[ticket/12903] Remove dead phpbb\extension\metadata_manager::_validate_version
-rw-r--r--phpBB/phpbb/extension/metadata_manager.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/phpBB/phpbb/extension/metadata_manager.php b/phpBB/phpbb/extension/metadata_manager.php
index 1051021ea7..edca8ee1af 100644
--- a/phpBB/phpbb/extension/metadata_manager.php
+++ b/phpBB/phpbb/extension/metadata_manager.php
@@ -330,27 +330,6 @@ class metadata_manager
}
/**
- * Version validation helper
- *
- * @param string $string The string for comparing to a version
- * @param string $current_version The version to compare to
- * @return bool True/False if meets version requirements
- */
- private function _validate_version($string, $current_version)
- {
- // Allow them to specify their own comparison operator (ex: <3.1.2, >=3.1.0)
- $comparison_matches = false;
- preg_match('#[=<>]+#', $string, $comparison_matches);
-
- if (!empty($comparison_matches))
- {
- return version_compare($current_version, str_replace(array($comparison_matches[0], ' '), '', $string), $comparison_matches[0]);
- }
-
- return version_compare($current_version, $string, '>=');
- }
-
- /**
* Outputs the metadata into the template
*
* @return null