Skip to content

Commit

Permalink
removing reference to unused variable __bare
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Dec 3, 2009
1 parent 3b74c93 commit 9cd7888
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
21 changes: 0 additions & 21 deletions cake/libs/controller/components/session.php
Expand Up @@ -48,14 +48,6 @@ class SessionComponent extends CakeSession {
*/ */
var $__started = false; var $__started = false;


/**
* Used to determine if request are from an Ajax request
*
* @var boolean
* @access private
*/
var $__bare = 0;

/** /**
* Class constructor * Class constructor
* *
Expand All @@ -69,19 +61,6 @@ function __construct($base = null) {
} }
} }


/**
* 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. * Startup method.
* *
Expand Down
20 changes: 0 additions & 20 deletions cake/tests/cases/libs/controller/components/session.test.php
Expand Up @@ -136,26 +136,6 @@ function testSessionAutoStart() {
$this->assertEqual($result, $expected); $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 * testSessionActivate method
* *
Expand Down

0 comments on commit 9cd7888

Please sign in to comment.