Skip to content

Commit

Permalink
Remove unused global variable declarations
Browse files Browse the repository at this point in the history
Issue #26567
  • Loading branch information
atrol committed Jan 9, 2020
1 parent 855c0d1 commit e153b89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/version_api.php
Expand Up @@ -504,7 +504,7 @@ function version_remove_all( $p_project_id ) {
* @return array Array of version rows (in array format)
*/
function version_get_all_rows( $p_project_ids, $p_released = null, $p_obsolete = false, $p_inherit = null ) {
global $g_cache_versions, $g_cache_versions_project;
global $g_cache_versions_project;
if( $p_inherit === null && ON == config_get( 'subprojects_inherit_versions', null, ALL_USERS, ALL_PROJECTS ) ) {
$t_inherit = true;
} else {
Expand Down Expand Up @@ -569,7 +569,6 @@ function version_get_all_rows( $p_project_ids, $p_released = null, $p_obsolete =
* @return integer
*/
function version_get_id( $p_version, $p_project_id = null, $p_inherit = null ) {
global $g_cache_versions;

if( $p_project_id === null ) {
$c_project_id = helper_get_current_project();
Expand Down

0 comments on commit e153b89

Please sign in to comment.