Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removing reference to unused variable __bare

  • Loading branch information...
commit 9cd78889916cb34e92d1c7a92f3433ebb23dfb85 1 parent 3b74c93
@AD7six AD7six authored
View
21 cake/libs/controller/components/session.php
@@ -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
View
20 cake/tests/cases/libs/controller/components/session.test.php
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.