Browse Source

Remove unused code.

mark_story 12 years ago
parent
commit
0667ff2156
1 changed files with 0 additions and 31 deletions
  1. 0 31
      src/Console/Command/Task/ControllerTask.php

+ 0 - 31
src/Console/Command/Task/ControllerTask.php

@@ -250,37 +250,6 @@ class ControllerTask extends BakeTask {
 	}
 
 /**
- * Interact with the user and get a list of additional components
- *
- * @return array Components the user wants to use.
- */
-	public function doComponents() {
-		$components = ['Paginator'];
-		return array_merge($components, $this->_doPropertyChoices(
-			__d('cake_console', "Would you like this controller to use other components\nbesides PaginatorComponent?"),
-			__d('cake_console', "Please provide a comma separated list of the component names you'd like to use.\nExample: 'Acl, Security, RequestHandler'")
-		));
-	}
-
-/**
- * Common code for property choice handling.
- *
- * @param string $prompt A yes/no question to precede the list
- * @param string $example A question for a comma separated list, with examples.
- * @return array Array of values for property.
- */
-	protected function _doPropertyChoices($prompt, $example) {
-		$proceed = $this->in($prompt, ['y', 'n'], 'n');
-		$property = [];
-		if (strtolower($proceed) === 'y') {
-			$propertyList = $this->in($example);
-			$propertyListTrimmed = str_replace(' ', '', $propertyList);
-			$property = explode(',', $propertyListTrimmed);
-		}
-		return array_filter($property);
-	}
-
-/**
  * Outputs and gets the list of possible controllers from database
  *
  * @param string $useDbConfig Database configuration name