From 26b676ecae32b4d8dbfcb357cd4f550cb5a034e7 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Tue, 11 Jun 2019 19:28:53 -0700 Subject: [PATCH 1/2] Disable warning about unused class. --- Duplicati/Library/Backend/Rclone/Rclone.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Duplicati/Library/Backend/Rclone/Rclone.cs b/Duplicati/Library/Backend/Rclone/Rclone.cs index af1a535f8..d0c02625b 100644 --- a/Duplicati/Library/Backend/Rclone/Rclone.cs +++ b/Duplicati/Library/Backend/Rclone/Rclone.cs @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // #endregion -using Duplicati.Library.Common.IO; +using Duplicati.Library.Common.IO; using Duplicati.Library.Interface; using Duplicati.Library.Utility; using Newtonsoft.Json; @@ -32,6 +32,8 @@ using System.Threading.Tasks; namespace Duplicati.Library.Backend { + // ReSharper disable once UnusedMember.Global + // This class is instantiated dynamically in the BackendLoader. public class Rclone : IBackend { private const string OPTION_LOCAL_REPO = "rclone-local-repository"; From 497f13f349b9a5219705d7bd07fc4d03d4fdf863 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Tue, 11 Jun 2019 19:29:07 -0700 Subject: [PATCH 2/2] Remove unused property. --- Duplicati/Library/Backend/Rclone/Rclone.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Duplicati/Library/Backend/Rclone/Rclone.cs b/Duplicati/Library/Backend/Rclone/Rclone.cs index d0c02625b..b5fc55581 100644 --- a/Duplicati/Library/Backend/Rclone/Rclone.cs +++ b/Duplicati/Library/Backend/Rclone/Rclone.cs @@ -95,11 +95,6 @@ namespace Duplicati.Library.Backend get { return "rclone"; } } - public bool SupportsStreaming - { - get { return false; } - } - private async Task RcloneCommandExecuter(String command, String arguments, CancellationToken cancelToken) { StringBuilder outputBuilder = new StringBuilder();