removing reference to unused variable __bare

This commit is contained in:
AD7six 2009-12-03 21:33:56 +01:00
parent 3b74c93582
commit 9cd7888991
2 changed files with 0 additions and 41 deletions

View file

@ -48,14 +48,6 @@ class SessionComponent extends CakeSession {
*/
var $__started = false;
/**
* Used to determine if request are from an Ajax request
*
* @var boolean
* @access private
*/
var $__bare = 0;
/**
* Class constructor
*
@ -69,19 +61,6 @@ class SessionComponent extends CakeSession {
}
}
/**
* Initializes the component, gets a reference to Controller::$param['bare'].
*
* @param object $controller A reference to the controller
* @return void
* @access public
*/
function initialize(&$controller) {
if (isset($controller->params['bare'])) {
$this->__bare = $controller->params['bare'];
}
}
/**
* Startup method.
*

View file

@ -136,26 +136,6 @@ class SessionComponentTest extends CakeTestCase {
$this->assertEqual($result, $expected);
}
/**
* testSessionInitialize method
*
* @access public
* @return void
*/
function testSessionInitialize() {
$Session =& new SessionComponent();
$this->assertEqual($Session->__bare, 0);
$Session->initialize(new SessionTestController());
$this->assertEqual($Session->__bare, 0);
$sessionController =& new SessionTestController();
$sessionController->params['bare'] = 1;
$Session->initialize($sessionController);
$this->assertEqual($Session->__bare, 1);
}
/**
* testSessionActivate method
*