Skip to content

Commit

Permalink
Re #11825 Removing dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelalvarezbanos committed May 22, 2015
1 parent 49ebd07 commit fce3b70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/Nexus/src/NexusFileIO.cpp
Expand Up @@ -629,15 +629,15 @@ void NexusFileIO::writeNexusVectorColumn(
int NexusFileIO::writeNexusTableWorkspace(
const API::ITableWorkspace_const_sptr &itableworkspace,
const char *group_name) const {
NXstatus status = 0;
NXstatus status = NX_ERROR;

boost::shared_ptr<const TableWorkspace> tableworkspace =
boost::dynamic_pointer_cast<const TableWorkspace>(itableworkspace);
boost::shared_ptr<const PeaksWorkspace> peakworkspace =
boost::dynamic_pointer_cast<const PeaksWorkspace>(itableworkspace);

if (!tableworkspace && !peakworkspace)
return ((status == NX_ERROR) ? 3 : 0);
return 3;

// write data entry
status = NXmakegroup(fileID, group_name, "NXdata");
Expand Down

0 comments on commit fce3b70

Please sign in to comment.