diff --git a/platform/configuration-store-impl/src/ComponentStoreImpl.kt b/platform/configuration-store-impl/src/ComponentStoreImpl.kt index 8518687fc35f..cbf7d4a94c94 100644 --- a/platform/configuration-store-impl/src/ComponentStoreImpl.kt +++ b/platform/configuration-store-impl/src/ComponentStoreImpl.kt @@ -535,19 +535,6 @@ abstract class ComponentStoreImpl : IComponentStore { override fun toString() = storageManager.componentManager.toString() } -internal fun executeSave(session: SaveSession, readonlyFiles: MutableList, errors: MutableList) { - try { - session.save() - } - catch (e: ReadOnlyModificationException) { - LOG.warn(e) - readonlyFiles.add(SaveSessionAndFile(e.session ?: session, e.file)) - } - catch (e: Exception) { - errors.add(e) - } -} - private fun findNonDeprecated(storages: Array) = storages.firstOrNull { !it.deprecated } ?: throw AssertionError( "All storages are deprecated") diff --git a/platform/configuration-store-impl/src/SaveExecutor.kt b/platform/configuration-store-impl/src/SaveExecutor.kt index ebf00174b068..5f39747802c3 100644 --- a/platform/configuration-store-impl/src/SaveExecutor.kt +++ b/platform/configuration-store-impl/src/SaveExecutor.kt @@ -37,4 +37,17 @@ internal open class SaveSessionProducerManager : SaveExecutor { } return isChanged } +} + +internal fun executeSave(session: SaveSession, readonlyFiles: MutableList, errors: MutableList) { + try { + session.save() + } + catch (e: ReadOnlyModificationException) { + LOG.warn(e) + readonlyFiles.add(SaveSessionAndFile(e.session ?: session, e.file)) + } + catch (e: Exception) { + errors.add(e) + } } \ No newline at end of file