Skip to content

Commit

Permalink
removing useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Oct 10, 2015
1 parent ad1e945 commit 10173a9
Showing 1 changed file with 16 additions and 38 deletions.
54 changes: 16 additions & 38 deletions src/QtDcmMoveScu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ class QtDcmMoveScu::Private
OFBool abortAssociation;
OFCmdSignedInt cancelAfterNResponses;
OFBool ignorePendingDatasets;
OFBool useStoreSCP;
DcmDataset overrideKeys;
OFString outputDirectory;

Expand Down Expand Up @@ -115,7 +114,6 @@ QtDcmMoveScu::QtDcmMoveScu ( QObject * parent )
d->ignorePendingDatasets = OFTrue;
d->outputDirectory = ".";
d->acseTimeout = 30;
d->useStoreSCP = true;
d->blockMode = DIMSE_BLOCKING;

d->mode = QtDcmMoveScu::IMPORT;
Expand Down Expand Up @@ -971,43 +969,23 @@ OFCondition QtDcmMoveScu::moveSCU ( T_ASC_Association * assoc, const char *fname
strcpy( req.MoveDestination, d->moveDestination );
}

OFCondition cond = EC_Normal;

if ( d->useStoreSCP ) {
cond = DIMSE_moveUser ( assoc,
d->presId,
&req,
file.getDataset(),
moveCallback,
( void* ) this,
d->blockMode,
d->dimseTimeout,
d->net,
subOpCallback,
( void* ) this,
&rsp,
&statusDetail,
&rspIds,
d->ignorePendingDatasets );
}
else {
cond = DIMSE_moveUser ( assoc,
d->presId,
&req,
file.getDataset(),
moveCallback,
( void* ) this,
d->blockMode,
d->dimseTimeout,
d->net,
NULL,
( void* ) this,
&rsp,
&statusDetail,
&rspIds,
d->ignorePendingDatasets );
}

const OFCondition cond = DIMSE_moveUser ( assoc,
d->presId,
&req,
file.getDataset(),
moveCallback,
( void* ) this,
d->blockMode,
d->dimseTimeout,
d->net,
subOpCallback,
( void* ) this,
&rsp,
&statusDetail,
&rspIds,
d->ignorePendingDatasets );

if ( rspIds != NULL ) delete rspIds;

return cond;
Expand Down

0 comments on commit 10173a9

Please sign in to comment.