Skip to content

Commit

Permalink
[refactoring] Remove unused 'sfct' command
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Dec 11, 2023
1 parent de7add2 commit d0398be
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions DocService/sources/canvasservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,10 +626,6 @@ let commandSfctByCmd = co.wrap(function*(ctx, cmd, opt_priority, opt_expiration,
let priority = null != opt_priority ? opt_priority : constants.QUEUE_PRIORITY_LOW;
yield* docsCoServer.addTask(queueData, priority, opt_queue, opt_expiration);
});
function* commandSfct(ctx, cmd, outputData) {
yield commandSfctByCmd(ctx, cmd);
outputData.setStatus('ok');
}
function isDisplayedImage(strName) {
var res = 0;
if (strName) {
Expand Down Expand Up @@ -1412,9 +1408,6 @@ exports.downloadAs = function(req, res) {
case 'sendmm':
yield* commandSendMailMerge(ctx, cmd, outputData);
break;
case 'sfct':
yield* commandSfct(ctx, cmd, outputData);
break;
default:
outputData.setStatus('err');
outputData.setData(constants.UNKNOWN);
Expand Down Expand Up @@ -1711,7 +1704,7 @@ exports.receiveTask = function(data, ack) {
var additionalOutput = {needUrlKey: null, needUrlMethod: null, needUrlType: null, needUrlIsCorrectPassword: undefined, creationDate: undefined, openedAt: undefined};
if ('open' == command || 'reopen' == command) {
yield getOutputData(ctx, cmd, outputData, cmd.getDocId(), null, additionalOutput);
} else if ('save' == command || 'savefromorigin' == command || 'sfct' == command) {
} else if ('save' == command || 'savefromorigin' == command) {
yield getOutputData(ctx, cmd, outputData, cmd.getSaveKey(), null, additionalOutput);
} else if ('sfcm' == command) {
yield commandSfcCallback(ctx, cmd, true);
Expand Down

0 comments on commit d0398be

Please sign in to comment.