From 8a89e8f9fb3db8d78ff3d706e922ef4262905bf8 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Wed, 22 Nov 2017 15:23:16 -0800 Subject: [PATCH] Remove BakedTypeInfo --- assignment-client/src/assets/AssetServer.cpp | 35 -------------------- 1 file changed, 35 deletions(-) diff --git a/assignment-client/src/assets/AssetServer.cpp b/assignment-client/src/assets/AssetServer.cpp index a8e6ecddb7..73f198c3d6 100644 --- a/assignment-client/src/assets/AssetServer.cpp +++ b/assignment-client/src/assets/AssetServer.cpp @@ -110,41 +110,6 @@ BakeVersion currentBakeVersionForAssetType(BakedAssetType type) { } } -struct BakedTypeInfo { - BakedAssetType type; - const char* slug; - BakeVersion currentVersion; - const char* bakedName; -}; - -constexpr std::array BAKED_TYPE_INFO { { - { - Model, - "model", - (BakeVersion)ModelBakeVersion::Initial, - "asset.fbx", - }, - { - Texture, - "texture", - (BakeVersion)TextureBakeVersion::Initial, - "texture.ktx", - }, - { - Script, - "script", - (BakeVersion)ScriptBakeVersion::FixEmptyScripts, - "asset.js", - } -}}; - -static_assert(BAKED_TYPE_INFO[BakedAssetType::Model].type == BakedAssetType::Model, - "Model should be in correct index"); -static_assert(BAKED_TYPE_INFO[BakedAssetType::Texture].type == BakedAssetType::Texture, - "Texture should be in correct index"); -static_assert(BAKED_TYPE_INFO[BakedAssetType::Script].type == BakedAssetType::Script, - "Script should be in correct index"); - const QString ASSET_SERVER_LOGGING_TARGET_NAME = "asset-server"; void AssetServer::bakeAsset(const AssetUtils::AssetHash& assetHash, const AssetUtils::AssetPath& assetPath, const QString& filePath) {