figments: drop unused perfcounter class
This commit is contained in:
@ -1,12 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <ArduinoLog.h>
|
||||
|
||||
struct PerfCounter {
|
||||
PerfCounter(const char* name) {}
|
||||
~PerfCounter() {}
|
||||
/*PerfCounter(const char* name) : start(millis()), name(name) {}
|
||||
~PerfCounter() {Log.notice("%s: %d", name, millis() - start);}*/
|
||||
uint16_t start;
|
||||
const char* name;
|
||||
};
|
@ -1,7 +1,6 @@
|
||||
#include "./Surface.h"
|
||||
#include "./Display.h"
|
||||
#include <ArduinoLog.h>
|
||||
#include "Perfcounter.h"
|
||||
|
||||
Surface::Surface(Display* dpy, const VirtualCoordinates& start, const VirtualCoordinates& end)
|
||||
: start(dpy->coordinateMapping()->virtualToPhysicalCoords(start)),
|
||||
@ -53,7 +52,6 @@ Surface::paintWith(std::function<void(CRGB&)> func)
|
||||
void
|
||||
Surface::paintShader(Surface::Shader shader)
|
||||
{
|
||||
PerfCounter _("paintShader");
|
||||
uint8_t startX = min(start.x, end.x);
|
||||
uint8_t startY = min(start.y, end.y);
|
||||
uint8_t endX = max(start.x, end.x);
|
||||
|
Reference in New Issue
Block a user