Skip to content

Commit 6da9e63

Browse files
authored
[NDB_Client] Remove unused method (#9921)
The isLoggedIn method in NDB_Client does not appear to be used. References to isLoggedIn() within the class all reference SinglePointLogin's isLoggedIn method, not NDB_Client's.
1 parent 051848d commit 6da9e63

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

php/libraries/NDB_Client.class.inc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,5 @@ class NDB_Client
138138
// finished initializing
139139
return true;
140140
}
141-
142-
/**
143-
* Returns true if the user is logged in
144-
*
145-
* @return true only if user is logged in
146-
*/
147-
function isLoggedIn()
148-
{
149-
if (!isset($_SESSION['State'])) {
150-
$_SESSION['State'] =& State::singleton();
151-
$login = new SinglePointLogin();
152-
$_SESSION['State']->setProperty('login', $login);
153-
} else {
154-
$login = $_SESSION['State']->getProperty('login');
155-
}
156-
157-
return $login->isLoggedIn();
158-
}
159141
}
160142

0 commit comments

Comments
 (0)