Remove external destroy method

OpenMC will call delete directly on the CustomSource.
This commit is contained in:
Dan Short 2020-08-05 16:00:49 +01:00
parent 651c8825f3
commit fae474869c
4 changed files with 3 additions and 19 deletions

View file

@ -65,10 +65,3 @@ class ParameterizedSource : public openmc::CustomSource {
extern "C" ParameterizedSource* create(const char* parameters) {
return ParameterizedSource::from_string(parameters);
}
// A function to destroy a pointer to an instance of this class when generated
// via a plugin call using dlopen/dlsym.
// You must have external C linkage here otherwise dlopen will not find the file
extern "C" void destroy(ParameterizedSource* source) {
delete source;
}