Skip to content

Commit

Permalink
Remove unused bitcounter
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Jan 15, 2025
1 parent 8f2acdb commit 970ea27
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion include/external/AsyncWebServer/WebHandlerImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class AsyncStaticWebHandler : public AsyncWebHandler {
private:
bool _getFile(AsyncWebServerRequest* request);
bool _fileExists(AsyncWebServerRequest* request, std::string_view path);
uint8_t _countBits(const uint8_t value) const;

protected:
FS _fs;
Expand Down
8 changes: 0 additions & 8 deletions src/external/AsyncWebServer/WebHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,6 @@ bool AsyncStaticWebHandler::_fileExists(AsyncWebServerRequest* request, std::str
return true;
}

uint8_t AsyncStaticWebHandler::_countBits(const uint8_t value) const
{
uint8_t w = value;
uint8_t n;
for (n = 0; w != 0; n++) w &= w - 1;
return n;
}

void AsyncStaticWebHandler::handleRequest(AsyncWebServerRequest* request)
{
// Get the filename from request->_tempObject and free it
Expand Down

0 comments on commit 970ea27

Please sign in to comment.