Commit 82eee243 authored by Giorgenes Gelatti's avatar Giorgenes Gelatti

Remove unused package destroy action

parent 60e36e72
......@@ -5,20 +5,11 @@ module Projects
class PackagesController < Projects::ApplicationController
include PackagesAccess
before_action :authorize_destroy_package!, only: [:destroy]
def show
@package = project.packages.find(params[:id])
@package_files = @package.package_files.recent
@maven_metadatum = @package.maven_metadatum
end
def destroy
@package = project.packages.find(params[:id])
@package.destroy
redirect_to project_packages_path(@project), status: :found, notice: _('Package was removed')
end
end
end
end
......@@ -17928,9 +17928,6 @@ msgstr ""
msgid "Package type must be PyPi"
msgstr ""
msgid "Package was removed"
msgstr ""
msgid "PackageRegistry|%{name} version %{version} was created %{datetime}"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment