mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Remove external destroy method
OpenMC will call delete directly on the CustomSource.
This commit is contained in:
parent
651c8825f3
commit
fae474869c
4 changed files with 3 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue