diff --git a/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs b/Duplicati/Library/Backend/CloudFiles/CloudFiles.cs index cd57ce0a5..302ffea67 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,18 +27,14 @@ 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"; 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; @@ -50,10 +46,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); @@ -286,11 +286,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 }; }