Remove back-compat code that's not needed anymore

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2016-05-17 23:44:54 -05:00
parent da8ac1635f
commit 4e58aa40b9
No known key found for this signature in database
GPG key ID: 46DF07E5CD9E96AB

View file

@ -124,11 +124,7 @@ module ProjectsHelper
end
def license_short_name(project)
no_license_key = project.repository.license_key.nil? ||
# Back-compat if cache contains 'no-license', can be removed in a few weeks
project.repository.license_key == 'no-license'
return 'LICENSE' if no_license_key
return 'LICENSE' if project.repository.license_key.nil?
license = Licensee::License.new(project.repository.license_key)