CLOUD: Use overriden handle() instead of ClientHandlerCallback in page handlers
Using a dedicated callback object for this was an unnecessary overhead.
This commit is contained in:
parent
712410496e
commit
a1de322c18
20 changed files with 126 additions and 171 deletions
|
@ -50,6 +50,8 @@ Common::String encodeDoubleQuotesAndSlashes(Common::String s) {
|
|||
|
||||
}
|
||||
|
||||
/// public
|
||||
|
||||
void FilesAjaxPageHandler::handle(Client &client) {
|
||||
// load stylish response page from the archive
|
||||
Common::SeekableReadStream *const stream = HandlerUtils::getArchiveFile(FILES_PAGE_NAME);
|
||||
|
@ -76,10 +78,4 @@ void FilesAjaxPageHandler::handle(Client &client) {
|
|||
LocalWebserver::setClientGetHandler(client, response);
|
||||
}
|
||||
|
||||
/// public
|
||||
|
||||
ClientHandlerCallback FilesAjaxPageHandler::getHandler() {
|
||||
return new Common::Callback<FilesAjaxPageHandler, Client &>(this, &FilesAjaxPageHandler::handle);
|
||||
}
|
||||
|
||||
} // End of namespace Networking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue