Skip to content

Commit

Permalink
Removed unused version_prepare_db() API function
Browse files Browse the repository at this point in the history
Data preparation is performed in version_add and version_update.
  • Loading branch information
dregad committed Sep 17, 2016
1 parent 653f9a2 commit 6119277
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions core/version_api.php
Expand Up @@ -670,20 +670,6 @@ function version_get( $p_version_id ) {
return new VersionData( $t_row );
}

/**
* Return a copy of the version structure with all the variables prepared for database insertion
* @param VersionData $p_version_info A version data structure.
* @return VersionData
*/
function version_prepare_db( VersionData $p_version_info ) {
$p_version_info->id = (int)$p_version_info->id;
$p_version_info->project_id = (int)$p_version_info->project_id;
$p_version_info->released = (bool)$p_version_info->released;
$p_version_info->obsolete = (bool)$p_version_info->obsolete;

return $p_version_info;
}

/**
* Checks whether the product version should be shown
* (i.e. report, update, view, print).
Expand Down

0 comments on commit 6119277

Please sign in to comment.