fun remove()

in src/main/kotlin/org/jetbrains/teamcity/github/AuthDataStorage.kt [141:150]


    fun remove(datas: Collection<AuthData>) {
        if (datas.isEmpty()) return
        val keysToRemove = datas.map { it.public }.toHashSet()
        if (keysToRemove.isEmpty()) return
        myDataLock.write {
            if (myData.keys.removeAll(keysToRemove)) myDataModificationCounter++
        }
        LOG.info("Removed auth data $datas")
        schedulePersisting()
    }