Remove redundant storage type constants.

These constants predate the C storage drivers which now provide their own constants.
This commit is contained in:
David Steele
2020-06-26 16:50:29 -04:00
parent 1416dc3225
commit c2dea180fb
5 changed files with 18 additions and 25 deletions
+3 -3
View File
@@ -351,19 +351,19 @@ storageRepoGet(const String *type, bool write)
protocolRemoteGet(protocolStorageTypeRepo, 1), cfgOptionUInt(cfgOptCompressLevelNetwork));
}
// Use CIFS storage
else if (strEqZ(type, STORAGE_TYPE_CIFS))
else if (strEqZ(type, STORAGE_CIFS_TYPE))
{
result = storageCifsNew(
cfgOptionStr(cfgOptRepoPath), STORAGE_MODE_FILE_DEFAULT, STORAGE_MODE_PATH_DEFAULT, write, storageRepoPathExpression);
}
// Use Posix storage
else if (strEqZ(type, STORAGE_TYPE_POSIX))
else if (strEqZ(type, STORAGE_POSIX_TYPE))
{
result = storagePosixNewP(
cfgOptionStr(cfgOptRepoPath), .write = write, .pathExpressionFunction = storageRepoPathExpression);
}
// Use S3 storage
else if (strEqZ(type, STORAGE_TYPE_S3))
else if (strEqZ(type, STORAGE_S3_TYPE))
{
// Set the default port
unsigned int port = cfgOptionUInt(cfgOptRepoS3Port);
-7
View File
@@ -24,13 +24,6 @@ Storage path constants
#define STORAGE_PATH_BACKUP "backup"
STRING_DECLARE(STORAGE_PATH_BACKUP_STR);
/***********************************************************************************************************************************
Repository storage types
***********************************************************************************************************************************/
#define STORAGE_TYPE_CIFS "cifs"
#define STORAGE_TYPE_POSIX "posix"
#define STORAGE_TYPE_S3 "s3"
/***********************************************************************************************************************************
Functions
***********************************************************************************************************************************/