Merge pull request #3769 from warwickmm/remove_unused_cloud_files_members
Remove unused members from Duplicati.Library.Backend.CloudFiles project
This commit is contained in:
@@ -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<string, string>[] KNOWN_CLOUDFILES_PROVIDERS = new KeyValuePair<string, string>[] {
|
||||
new KeyValuePair<string, string>("Rackspace US", AUTH_URL_US),
|
||||
new KeyValuePair<string, string>("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<string, string> 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 }; }
|
||||
|
||||
Reference in New Issue
Block a user