diff --git a/app/models/project.rb b/app/models/project.rb
index d228da192e47e441079f473a74f61c2acef6b0db..1c7fd27a38b72f4bfdfab51826c391260e731683 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -326,11 +326,6 @@ class Project < ActiveRecord::Base
     @ci_service ||= ci_services.select(&:activated?).first
   end
 
-  # For compatibility with old code
-  def code
-    path
-  end
-
   def items_for(entity)
     case entity
     when 'issue' then