From 7773c42f56899fcf80373f551d724fb55a5b240d Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Sun, 28 Apr 2019 16:21:29 -0700 Subject: [PATCH 1/4] Disable warning about unused class. --- Duplicati/Library/Backend/CloudFiles/CloudFiles.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs b/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs index cd57ce0a5..a7f694aa5 100644 --- a/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs +++ b/Duplicati/Library/Backend/CloudFiles/CloudFiles.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 System; using System.Collections.Generic; @@ -27,6 +27,8 @@ using System.Threading.Tasks; namespace Duplicati.Library.Backend { + // ReSharper disable once UnusedMember.Global + // This class is instantiated dynamically in the BackendLoader. public class CloudFiles : IBackend, IStreamingBackend { public const string AUTH_URL_US = "https://identity.api.rackspacecloud.com/auth"; From adea2f9aecdced809fce6e5802a32df42e5cf715 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Sun, 28 Apr 2019 16:22:43 -0700 Subject: [PATCH 2/4] Disable warning about unused constructors. --- Duplicati/Library/Backend/CloudFiles/CloudFiles.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs b/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs index a7f694aa5..1d255533c 100644 --- a/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs +++ b/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs @@ -52,10 +52,14 @@ namespace Duplicati.Library.Backend private readonly byte[] m_copybuffer = new byte[Duplicati.Library.Utility.Utility.DEFAULT_BUFFER_SIZE]; + // ReSharper disable once UnusedMember.Global + // This constructor is needed by the BackendLoader. public CloudFiles() { } + // ReSharper disable once UnusedMember.Global + // This constructor is needed by the BackendLoader. public CloudFiles(string url, Dictionary options) { var uri = new Utility.Uri(url); From 53cc2452e00768b39dbbe87e9dc0f11f8d6664ea Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Sun, 28 Apr 2019 16:24:22 -0700 Subject: [PATCH 3/4] Remove unused property. --- Duplicati/Library/Backend/CloudFiles/CloudFiles.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs b/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs index 1d255533c..7f9178715 100644 --- a/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs +++ b/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs @@ -292,11 +292,6 @@ namespace Duplicati.Library.Backend #region IStreamingBackend Members - public bool SupportsStreaming - { - get { return true; } - } - public string[] DNSName { get { return new string[] { new Uri(m_authUrl).Host, string.IsNullOrWhiteSpace(m_storageUrl) ? null : new Uri(m_storageUrl).Host }; } From 9aab376b9f89d4f64900a2889113281086dadf75 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Sun, 28 Apr 2019 16:26:30 -0700 Subject: [PATCH 4/4] Remove unused property. --- Duplicati/Library/Backend/CloudFiles/CloudFiles.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs b/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs index 7f9178715..302ffea67 100644 --- a/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs +++ b/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs @@ -35,12 +35,6 @@ namespace Duplicati.Library.Backend public const string AUTH_URL_UK = "https://lon.auth.api.rackspacecloud.com/v1.0"; private const string DUMMY_HOSTNAME = "api.mosso.com"; - public static readonly KeyValuePair[] KNOWN_CLOUDFILES_PROVIDERS = new KeyValuePair[] { - new KeyValuePair("Rackspace US", AUTH_URL_US), - new KeyValuePair("Rackspace UK", AUTH_URL_UK), - }; - - private const int ITEM_LIST_LIMIT = 1000; private readonly string m_username; private readonly string m_password;