Removed zombie code

This commit is contained in:
2023-03-07 15:18:17 -06:00
parent d0fb8c33e9
commit 2162a6832b

View File

@ -48,10 +48,7 @@ import com.kingsrook.qqq.backend.core.utils.StringUtils;
/******************************************************************************* /*******************************************************************************
** Action to store a new version of a script, associated with a record. ** Action to store a new version (revision) of a script.
**
** If there's never been a script assigned to the record (for the specified field),
** then a new Script record is first inserted.
** **
** The script referenced by the record is always updated to point at the new ** The script referenced by the record is always updated to point at the new
** scriptRevision record that is inserted. ** scriptRevision record that is inserted.
@ -68,33 +65,6 @@ public class StoreScriptRevisionProcessStep implements BackendStep
{ {
ActionHelper.validateSession(input); ActionHelper.validateSession(input);
/*
QTableMetaData table = input.getTable();
Optional<AssociatedScript> optAssociatedScript = table.getAssociatedScripts().stream().filter(as -> as.getFieldName().equals(input.getFieldName())).findFirst();
if(optAssociatedScript.isEmpty())
{
throw (new QException("Field to update associated script for is not an associated script field."));
}
AssociatedScript associatedScript = optAssociatedScript.get();
/////////////////////////////////////////////////////////////
// get the record that the script is to be associated with //
/////////////////////////////////////////////////////////////
QRecord associatedRecord;
{
GetInput getInput = new GetInput();
getInput.setTableName(input.getTableName());
getInput.setPrimaryKey(input.getRecordPrimaryKey());
getInput.setShouldGenerateDisplayValues(true);
GetOutput getOutput = new GetAction().execute(getInput);
associatedRecord = getOutput.getRecord();
}
if(associatedRecord == null)
{
throw (new QException("Record to associated with script was not found."));
}
*/
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
// check if there's currently a script referenced by the record // // check if there's currently a script referenced by the record //
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////