diff options
Diffstat (limited to 'Bugzilla/Version.pm')
-rw-r--r-- | Bugzilla/Version.pm | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/Bugzilla/Version.pm b/Bugzilla/Version.pm index 69eee3752..a2ef6b01e 100644 --- a/Bugzilla/Version.pm +++ b/Bugzilla/Version.pm @@ -150,20 +150,6 @@ sub product_id { return $_[0]->{'product_id'}; } ##### Subroutines ### ############################### -sub check_version { - my ($product, $version_name) = @_; - - $version_name || ThrowUserError('version_not_specified'); - my $version = new Bugzilla::Version( - { product => $product, name => $version_name }); - unless ($version) { - ThrowUserError('version_not_valid', - {'product' => $product->name, - 'version' => $version_name}); - } - return $version; -} - sub create { my ($name, $product) = @_; my $dbh = Bugzilla->dbh; @@ -212,9 +198,6 @@ Bugzilla::Version - Bugzilla product version class. my $version = $hash_ref->{'version_value'}; - my $version = Bugzilla::Version::check_version($product_obj, - 'acme_version'); - my $version = Bugzilla::Version::create($version_name, $product); =head1 DESCRIPTION @@ -266,15 +249,6 @@ Version.pm represents a Product Version object. =over -=item C<check_version($product, $version_name)> - - Description: Checks if the version name exists for the product name. - - Params: $product - A Bugzilla::Product object. - $version_name - String with a version name. - - Returns: Bugzilla::Version object. - =item C<create($version_name, $product)> Description: Create a new version for the given product. |