Skip to content

Commit baec4e3

Browse files
pcaspersjenkins
authored andcommitted
QPR-12487 remove debug code
1 parent d244847 commit baec4e3

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

QuantExt/qle/ad/external_randomvariable_ops.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222

2323
namespace QuantExt {
2424

25-
std::size_t ExternalRandomVariable::nCreated_ = 0;
26-
std::size_t ExternalRandomVariable::nDeleted_ = 0;
27-
2825
ExternalRandomVariable::ExternalRandomVariable(std::size_t id) : initialized_(true), id_(id) {}
2926

3027
ExternalRandomVariable::ExternalRandomVariable(double v) : initialized_(true), v_(v) {
@@ -41,7 +38,6 @@ ExternalRandomVariable::ExternalRandomVariable(const std::size_t randomVariableO
4138
});
4239
id_ = ComputeEnvironment::instance().context().applyOperation(randomVariableOpCode, argIds);
4340
initialized_ = true;
44-
nCreated_++;
4541
}
4642

4743
void ExternalRandomVariable::clear() {

QuantExt/qle/ad/external_randomvariable_ops.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ class ExternalRandomVariable {
4545
static std::function<void(ExternalRandomVariable&)> preDeleter;
4646
static std::function<void(ExternalRandomVariable&)> deleter;
4747

48-
static std::size_t nCreated_, nDeleted_;
49-
5048
private:
5149
bool initialized_ = false;
5250
bool freed_ = false;

0 commit comments

Comments
 (0)