Browse Source

sns: single value filter has no reason to override capacity

pull/2525/head
Maxim Prokhorov 2 years ago
parent
commit
61ac1c0778
2 changed files with 0 additions and 8 deletions
  1. +0
    -4
      code/espurna/filters/LastFilter.h
  2. +0
    -4
      code/espurna/filters/MaxFilter.h

+ 0
- 4
code/espurna/filters/LastFilter.h View File

@ -13,10 +13,6 @@ public:
_value = value;
}
size_t capacity() const override {
return 1;
}
void reset() override {
_value = 0;
}


+ 0
- 4
code/espurna/filters/MaxFilter.h View File

@ -15,10 +15,6 @@ public:
_value = std::max(value, _value);
}
size_t capacity() const {
return 1;
}
void reset() override {
_value = 0;
}


Loading…
Cancel
Save