[refs #505] Remove unnessacary set_default_status method

This commit is contained in:
konstantin.grabar 2012-06-01 15:06:59 +04:00
parent f188a83eca
commit 2eff4d1160
1 changed files with 0 additions and 6 deletions

View File

@ -96,7 +96,6 @@ class BuildList < ActiveRecord::Base
serialize :additional_repos
serialize :include_repos
before_create :set_default_status
after_create :place_build
after_destroy :delete_container
@ -251,11 +250,6 @@ class BuildList < ActiveRecord::Base
protected
def set_default_status
self.status = WAITING_FOR_RESPONSE unless self.status.present?
return true
end
def delete_container
if can_cancel?
BuildServer.delete_build_list bs_id