From 2083ab1501db7c4f981891ba671d41b4689ba22c Mon Sep 17 00:00:00 2001 From: Michael Croes Date: Thu, 21 Jun 2018 20:28:22 +0200 Subject: [PATCH] Remove obsolete attribute and comments References #124. --- S7.Net.UnitTest/S7NetTestsSync.cs | 2 +- S7.Net/PlcSynchronous.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/S7.Net.UnitTest/S7NetTestsSync.cs b/S7.Net.UnitTest/S7NetTestsSync.cs index 6daa9f7..bed59ef 100644 --- a/S7.Net.UnitTest/S7NetTestsSync.cs +++ b/S7.Net.UnitTest/S7NetTestsSync.cs @@ -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 { diff --git a/S7.Net/PlcSynchronous.cs b/S7.Net/PlcSynchronous.cs index ccd4279..78c4910 100644 --- a/S7.Net/PlcSynchronous.cs +++ b/S7.Net/PlcSynchronous.cs @@ -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). /// /// List of dataitems that contains the list of variables that must be read. Maximum 20 dataitems are accepted. - [Obsolete("Use ReadMultipleVarsAsync. Note: different function signature")] public void ReadMultipleVars(List dataItems) { int cntBytes = dataItems.Sum(dataItem => VarTypeToByteLength(dataItem.VarType, dataItem.Count));