Skip to content

Commit

Permalink
Remove unused session methods. (#9658)
Browse files Browse the repository at this point in the history
  • Loading branch information
janbartel authored Apr 24, 2023
1 parent 7ffdd7f commit 5b4a013
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,6 @@ public boolean access(long time)
}
}

public void commit()
{
_manager.commit(this);
}

public void complete()
{
_manager.complete(this);
}

void release()
{
try (AutoLock ignored = _lock.lock())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,28 +360,6 @@ public void addEventListener(final EventListener listener)
throw new IllegalArgumentException(listener.getClass().toString());
}

/**
* A response is being committed for a session,
* potentially write the session out before the
* client receives the response.
*
* @param session the session
*/
private void commitSession(ManagedSession session)
{
if (LOG.isDebugEnabled())
LOG.debug("Response {} committing for session {}", this, session);

//try and scope to a request and context before committing the session
HttpSession httpSession = session.getApi();
ServletContext ctx = httpSession.getServletContext();
ContextHandler handler = ContextHandler.getContextHandler(ctx);
if (handler == null)
session.commit();
else
handler.handle(this, session::commit);
}

private MultiMap<String> getParameters()
{
if (!_contentParamsExtracted)
Expand Down

0 comments on commit 5b4a013

Please sign in to comment.