Remove more unused things from CryCommon and CrySystem. (#709)
Lots of unrelated removals, I basically tried to remove everything exposed via gEnv that isn't used anymore, and following the threads found a few other things to remove also.
This commit is contained in:
@@ -160,7 +160,6 @@ void SandboxIntegrationManager::Setup()
|
||||
AzToolsFramework::SliceEditorEntityOwnershipServiceNotificationBus::Handler::BusConnect();
|
||||
|
||||
AzFramework::DisplayContextRequestBus::Handler::BusConnect();
|
||||
SetupFileExtensionMap();
|
||||
|
||||
MainWindow::instance()->GetActionManager()->RegisterActionHandler(ID_FILE_SAVE_SLICE_TO_ROOT, [this]() {
|
||||
SaveSlice(false);
|
||||
@@ -1926,30 +1925,6 @@ void SandboxIntegrationManager::MakeSliceFromEntities(const AzToolsFramework::En
|
||||
AzToolsFramework::SliceUtilities::MakeNewSlice(entitiesAndDescendants, path, inheritSlices, setAsDynamic);
|
||||
}
|
||||
|
||||
void SandboxIntegrationManager::SetupFileExtensionMap()
|
||||
{
|
||||
// There's no central registry for geometry file types.
|
||||
const char* geometryFileExtensions[] =
|
||||
{
|
||||
CRY_GEOMETRY_FILE_EXT, // .cgf
|
||||
CRY_SKEL_FILE_EXT, // .chr
|
||||
CRY_CHARACTER_DEFINITION_FILE_EXT, // .cdf
|
||||
};
|
||||
|
||||
// Cry geometry file extensions.
|
||||
for (const char* extension : geometryFileExtensions)
|
||||
{
|
||||
m_extensionToFileType[AZ::Crc32(extension)] = IFileUtil::EFILE_TYPE_GEOMETRY;
|
||||
}
|
||||
|
||||
// Cry image file extensions.
|
||||
for (size_t i = 0; i < IResourceCompilerHelper::GetNumSourceImageFormats(); ++i)
|
||||
{
|
||||
const char* extension = IResourceCompilerHelper::GetSourceImageFormat(i, false);
|
||||
m_extensionToFileType[AZ::Crc32(extension)] = IFileUtil::EFILE_TYPE_TEXTURE;
|
||||
}
|
||||
}
|
||||
|
||||
void SandboxIntegrationManager::RegisterViewPane(const char* name, const char* category, const AzToolsFramework::ViewPaneOptions& viewOptions, const WidgetCreationFunc& widgetCreationFunc)
|
||||
{
|
||||
QtViewPaneManager::instance()->RegisterPane(name, category, widgetCreationFunc, viewOptions);
|
||||
|
||||
Reference in New Issue
Block a user