Skip to content

Commit bea502f

Browse files
committed
fix stats regeneration
1 parent a8434fa commit bea502f

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ To install or update LODA, please follow the [installation instructions](https:/
22

33
## [Unreleased]
44

5+
### Bugfixes
6+
7+
* Fix duplicate stats regeneration
8+
59
## v25.1.31
610

711
### Enhancements

src/mine/miner.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ void Miner::reload() {
5858
}
5959
}
6060
mutator.reset(new Mutator(manager->getStats()));
61-
manager->releaseStats(); // not needed anymore
6261
}
6362

6463
void signalShutdown() {

src/oeis/oeis_manager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,6 @@ const Stats &OeisManager::getStats() {
661661
return *stats;
662662
}
663663

664-
void OeisManager::releaseStats() { stats.reset(); }
665-
666664
void OeisManager::addSeqComments(Program &p) const {
667665
for (auto &op : p.ops) {
668666
if (op.type == Operation::Type::SEQ &&

src/oeis/oeis_manager.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class OeisManager {
3636

3737
const Stats& getStats();
3838

39-
void releaseStats();
40-
4139
Finder& getFinder();
4240

4341
size_t getTotalCount() const { return total_count; }

0 commit comments

Comments
 (0)