Remove unused `remove_file` method

In #32780, We have supported the `--skip-sprockets` option in the `app:update` task.
When `options[:api]` is truthy, `option[:skip_sprockets]` is also truthy. So we can remove this `remove_file` method.
42b9e7e50c/railties/lib/rails/generators/rails/app/app_generator.rb (L281-L283)
This commit is contained in:
Tsukuru Tanimichi 2018-05-08 13:56:59 +09:00
parent 834be61e61
commit 9ed1b07b5e
1 changed files with 0 additions and 4 deletions

View File

@ -159,10 +159,6 @@ module Rails
remove_file "config/initializers/cookies_serializer.rb"
end
unless assets_config_exist
remove_file "config/initializers/assets.rb"
end
unless csp_config_exist
remove_file "config/initializers/content_security_policy.rb"
end