Skip to content

Commit 204f5ca

Browse files
committed
Closes #668
1 parent d5ca275 commit 204f5ca

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

src/Modules/DataIO/WriteMatrix.cc

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,38 +40,6 @@ using namespace SCIRun::Core::Datatypes;
4040
using namespace SCIRun::Dataflow::Networks;
4141
using 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-
7543
WriteMatrixModule::WriteMatrixModule()
7644
: my_base("WriteMatrix", "DataIO", "SCIRun", "Filename")
7745
//gui_increment_(get_ctx()->subVar("increment"), 0),

src/Modules/DataIO/WriteMatrix.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,6 @@ namespace SCIRun {
3838
namespace Modules {
3939
namespace DataIO {
4040

41-
//class SCISHARE WriteMatrixModule : public SCIRun::Dataflow::Networks::Module,
42-
// public Has2InputPorts<MatrixPortTag, StringPortTag>,
43-
// public HasNoOutputPorts
44-
//{
45-
//public:
46-
// WriteMatrixModule();
47-
// virtual void execute();
48-
// virtual void setStateDefaults() {}
49-
// INPUT_PORT(0, MatrixToWrite, Matrix);
50-
// INPUT_PORT(1, Filename, String);
51-
//private:
52-
// std::string filename_;
53-
//};
54-
5541
class SCISHARE WriteMatrixModule : public GenericWriter<Core::Datatypes::MatrixHandle, MatrixPortTag>
5642
{
5743
public:

0 commit comments

Comments
 (0)