Permalink
Browse files

removing reference to unused variable __bare

  • Loading branch information...
1 parent 3b74c93 commit 9cd78889916cb34e92d1c7a92f3433ebb23dfb85 @AD7six AD7six committed Dec 3, 2009
@@ -49,14 +49,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
*
* @param string $base The base path for the Session
@@ -70,19 +62,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.
*
* @param object $controller Instantiating controller
@@ -137,26 +137,6 @@ function testSessionAutoStart() {
}
/**
- * 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
*
* @access public

0 comments on commit 9cd7888

Please sign in to comment.