@@ -40,38 +40,6 @@ using namespace SCIRun::Core::Datatypes;
4040using namespace SCIRun ::Dataflow::Networks;
4141using namespace SCIRun ::Modules::DataIO;
4242
43-
44- // TODO: defunct the old version
45- #if 0
46- WriteMatrixModule::WriteMatrixModule() : Module(ModuleLookupInfo("WriteMatrix", "DataIO", "SCIRun"))
47- {
48- INITIALIZE_PORT(Filename);
49- INITIALIZE_PORT(MatrixToWrite);
50- }
51-
52- /// @todo: unit test. Requires algorithm injection/factory for mocking, to be able to isolate the "optional file argument" part.
53- void WriteMatrixModule::execute()
54- {
55- auto matrix = getRequiredInput(MatrixToWrite);
56-
57- auto fileOption = getOptionalInput(Filename);
58-
59- if (fileOption && *fileOption)
60- {
61- get_state()->setValue(SCIRun::Core::Algorithms::Variables::Filename, (*fileOption)->value());
62- }
63- auto path = get_state()->getValue(Variables::Filename).toFilename();
64- filename_ = path.string();
65-
66- if (needToExecute())
67- {
68- algo().set(Variables::Filename, filename_);
69- algo().run_generic(withInputData((MatrixToWrite, matrix)));
70- }
71- }
72- #endif
73-
74-
7543WriteMatrixModule::WriteMatrixModule ()
7644 : my_base(" WriteMatrix" , " DataIO" , " SCIRun" , " Filename" )
7745 // gui_increment_(get_ctx()->subVar("increment"), 0),
0 commit comments