[Workspace Model] LibraryFilesPackagingElementEntityData doesn't use affectedIds

GitOrigin-RevId: 70dad3f8580ddff705999693c7b5aa379633a5ea
This commit is contained in:
Alex Plate
2020-06-02 21:27:54 +03:00
committed by intellij-monorepo-bot
parent 8cfc97b979
commit 56a79294c2
@@ -731,11 +731,7 @@ class ModuleOutputPackagingElementEntity(
class LibraryFilesPackagingElementEntityData : WorkspaceEntityData<LibraryFilesPackagingElementEntity>(), SoftLinkable {
lateinit var library: LibraryId
override fun getLinks(): Set<PersistentEntityId<*>> {
val tableId = library.tableId
if (tableId is LibraryTableId.ModuleLibraryTableId) return setOf(library, tableId.moduleId)
return setOf(library)
}
override fun getLinks(): Set<PersistentEntityId<*>> = setOf(library)
override fun updateLink(oldLink: PersistentEntityId<*>,
newLink: PersistentEntityId<*>,
@@ -745,13 +741,6 @@ class LibraryFilesPackagingElementEntityData : WorkspaceEntityData<LibraryFilesP
return true
}
val tableId = library.tableId
if (tableId is LibraryTableId.ModuleLibraryTableId && tableId.moduleId == oldLink) {
val oldLibrary = library
this.library = library.copy(tableId = tableId.copy(moduleId = newLink as ModuleId))
affectedIds += oldLibrary to this.library
}
return false
}