Skip to content

Commit 662b022

Browse files
removed commented out SetColumns extension
1 parent fb04c60 commit 662b022

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

QAction_1/ProtocolExtensions.cs

-46
Original file line numberDiff line numberDiff line change
@@ -196,52 +196,6 @@ public static void SetColumns(this SLProtocol protocol, IList<int> columnsPid, I
196196
protocol.NotifyProtocol(220, columnsPidArray, columnsValuesArray);
197197
}
198198

199-
///// <summary>
200-
///// Sets the specified columns.
201-
///// </summary>
202-
///// <param name="protocol">Link with SLProtocol process.</param>
203-
///// <param name="columnsPid">The column parameter ID of the columns to update. First item should contain the table PID. Primary key column PID should never be provided.</param>
204-
///// <param name="columnsValues">The column values for each column to update. First item should contain the primary keys as <see cref="string" />.</param>
205-
///// <param name="dateTime">The time stamp for the new values (in case of historySets).</param>
206-
///// <exception cref="ArgumentNullException"><paramref name="columnsPid"/> or <paramref name="columnsValues"/> is <see langword="null"/>.</exception>
207-
//public static void SetColumns(this SLProtocol protocol, IEnumerable<int> columnsPid, IEnumerable<IEnumerable<object>> columnsValues, DateTime? dateTime = null)
208-
//{
209-
// // Sanity checks
210-
// if (columnsPid == null)
211-
// throw new ArgumentNullException(nameof(columnsPid));
212-
213-
// if (columnsValues == null)
214-
// throw new ArgumentNullException(nameof(columnsValues));
215-
216-
// int columnsPidCount = columnsPid.Count();
217-
218-
// if (columnsPidCount != columnsValues.Count())
219-
// throw new ArgumentException($"Length of {nameof(columnsPid)} '{columnsPidCount}' != length of {nameof(columnsValues)} '{columnsValues.Count()}'.");
220-
221-
// // Prepare data
222-
// object[] columnsPidArray = new object[columnsPidCount + 1];
223-
// object[] columnsValuesArray = new object[columnsPidCount];
224-
225-
// int columnPos = 0;
226-
// foreach (var columnPid in columnsPid)
227-
// {
228-
// columnsPidArray[columnPos++] = columnPid;
229-
// }
230-
231-
// columnPos = 0;
232-
// foreach (var columnValue in columnsValues)
233-
// {
234-
// columnsValuesArray[columnPos++] = columnValue.ToArray();
235-
// }
236-
237-
// // Options (Clear & Leave, history sets)
238-
// object[] setColumnOptions = dateTime == null ? new object[] { true } : new object[] { true, dateTime.Value };
239-
// columnsPidArray[columnsPidCount] = setColumnOptions;
240-
241-
// // Set columns
242-
// protocol.NotifyProtocol(220, columnsPidArray, columnsValuesArray);
243-
//}
244-
245199
/// <summary>
246200
/// Sets the specified columns (Requires Main 10.0.0 [CU?] or Feature 9.6.6 [CU?] (see RN 23815)).
247201
/// </summary>

0 commit comments

Comments
 (0)