Remove obsolete attribute and comments

References #124.
This commit is contained in:
Michael Croes
2018-06-21 20:28:22 +02:00
parent 003d775228
commit 2083ab1501
2 changed files with 2 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ using S7.UnitTest.Helpers;
*
*/
//This file contains tests for the obsolete synchronous methods
//This file contains tests for the synchronous methods
#pragma warning disable CS0618
namespace S7.Net.UnitTest
{

View File

@@ -8,7 +8,7 @@ using System.Net.Sockets;
using System.Threading.Tasks;
using S7.Net.Protocol;
//Implement obsolete synchronous methods here
//Implement synchronous methods here
namespace S7.Net
{
public partial class Plc
@@ -519,7 +519,6 @@ namespace S7.Net
/// DataItems must not be more than 20 (protocol restriction) and bytes must not be more than 200 + 22 of header (protocol restriction).
/// </summary>
/// <param name="dataItems">List of dataitems that contains the list of variables that must be read. Maximum 20 dataitems are accepted.</param>
[Obsolete("Use ReadMultipleVarsAsync. Note: different function signature")]
public void ReadMultipleVars(List<DataItem> dataItems)
{
int cntBytes = dataItems.Sum(dataItem => VarTypeToByteLength(dataItem.VarType, dataItem.Count));