Skip to content

Commit f12ef97

Browse files
authored
Merge pull request #291 from phase2/feature/remove_deprecated_code
Removing deprecated code and documentation for v1.0 release
2 parents 121af69 + ca8cd8c commit f12ef97

File tree

5 files changed

+3
-21
lines changed

5 files changed

+3
-21
lines changed

Gruntfile.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/40_operations.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ skip starting up watch tasks.
111111
}
112112
```
113113

114-
**serve.profile**: DEPRECATED - use **project.profile** instead.
115-
116114
**serve.port**: The port number to bind for the webserver. Only one service may
117115
occupy a port on a machine, so a project-specific port may be worthwhile.
118116
Defaults to `8080`.

tasks/quality.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,7 @@ module.exports = function(grunt) {
5757
var phpcs = phpcsConfig.dir || phpcsPatterns;
5858
var phpStandard = phpcsConfig.standard ||
5959
'vendor/drupal/coder/coder_sniffer/Drupal,vendor/drupal/coder/coder_sniffer/DrupalPractice';
60-
61-
// Support deprecated config.phpcs.ignoreExitCode value until 1.0.
62-
var ignoreError = grunt.config('config.validate.ignoreError') ||
63-
phpcsConfig.ignoreExitCode;
64-
ignoreError = ignoreError === undefined ? false : ignoreError;
60+
var ignoreError = grunt.config('config.validate.ignoreError');
6561

6662
grunt.config('phpcs', {
6763
analyze: {

tasks/serve.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ module.exports = function(grunt) {
2121
// If no path is configured for Drush, fallback to the system path.
2222
var cmd = {cmd: Drupal.drushPath()};
2323

24-
// `config.serve.profile` is deprecated.
25-
if (grunt.config('config.serve.profile')) {
26-
grunt.log.warn('The `serve.profile` parameter is deprecated and will be ' +
27-
'removed in future versions. Use `project.profile` instead.');
28-
}
29-
var profile = grunt.config('config.project.profile') ||
30-
grunt.config('config.serve.profile') || 'standard';
24+
var profile = grunt.config('config.project.profile') || 'standard';
3125

3226
grunt.config(['drush', 'liteinstall'], {
3327
args: ['site-install', '-yv', profile, '--db-url=sqlite:/' +

test/create_working_copy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This script creates a working copy of grunt-drupal-tasks by initializing a
44
# project using the example in the test/working_copy directory.
55

6-
if [ ! -f "Gruntfile.js" ]; then echo "This script should be run from the grunt-drupal-tasks directory."; exit 1; fi;
6+
if [ ! -f "test/create_working_copy.sh" ]; then echo "This script should be run from the grunt-drupal-tasks directory."; exit 1; fi;
77

88
# If an old install exists, reset permissions on src/sites/default.
99
if [ -d "test/working_copy/src/sites/default" ]; then chmod 755 test/working_copy/src/sites/default/; fi;

0 commit comments

Comments
 (0)