Skip to content

Commit

Permalink
code cleanup. apache#4369
Browse files Browse the repository at this point in the history
  • Loading branch information
bamaer authored and hansva committed Oct 22, 2024
1 parent 2cf8fb5 commit b53a3b2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 330 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ public boolean processRow() throws HopException {
}
}
// set Headers
// int nrargs = meta.getHeaderName() == null ? 0 : meta.getHeaderName().length;
if (meta.getHeaderFields().isEmpty()) {
data.nrheader = meta.getHeaderFields().size();
data.indexOfHeaderFields = new int[meta.getHeaderFields().size()];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1463,11 +1463,6 @@ private void ok() {
input.getParameterFields().clear();
input.getMatrixParameterFields().clear();

// int nrheaders = wFields.nrNonEmpty();
// int nrparams = wParameters.nrNonEmpty();
// int nrmatrixparams = wMatrixParameters.nrNonEmpty();
// input.allocate(nrheaders, nrparams, nrmatrixparams);

if (isDebug()) {
logDebug(
BaseMessages.getString(
Expand All @@ -1478,25 +1473,19 @@ private void ok() {
HeaderField headerField = new HeaderField();
headerField.setHeaderField(item.getText(1));
headerField.setName(item.getText(2));
// input.getHeaderFields()[i] = item.getText(1);
// input.getHeaderName()[i] = item.getText(2);
}
for (int i = 0; i < wParameters.nrNonEmpty(); i++) {
TableItem item = wParameters.getNonEmpty(i);
ParameterField parameterField = new ParameterField();
parameterField.setHeaderField(item.getText(1));
parameterField.setName(item.getText(2));
// input.getParameterField()[i] = item.getText(1);
// input.getParameterName()[i] = item.getText(2);
}

for (int i = 0; i < wMatrixParameters.nrNonEmpty(); i++) {
TableItem item = wMatrixParameters.getNonEmpty(i);
MatrixParameterField matrixParameterField = new MatrixParameterField();
matrixParameterField.setHeaderField(item.getText(1));
matrixParameterField.setName(item.getText(2));
// input.getMatrixParameterField()[i] = item.getText(1);
// input.getMatrixParameterName()[i] = item.getText(2);
}

input.setDynamicMethod(wMethodInField.getSelection());
Expand Down
Loading

0 comments on commit b53a3b2

Please sign in to comment.