DeviceKeys is now internal, removing unused code.

This commit is contained in:
Benoit Marty 2022-04-12 14:37:48 +02:00 committed by Benoit Marty
parent d07f26904a
commit 7eaef934db
2 changed files with 1 additions and 14 deletions

View file

@ -144,19 +144,6 @@ data class MXDeviceInfo(
return map
}
/**
* @return a dictionary of the parameters
*/
fun toDeviceKeys(): DeviceKeys {
return DeviceKeys(
userId = userId,
deviceId = deviceId,
algorithms = algorithms!!,
keys = keys!!,
signatures = signatures!!
)
}
override fun toString(): String {
return "MXDeviceInfo $userId:$deviceId"
}

View file

@ -20,7 +20,7 @@ import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class DeviceKeys(
internal data class DeviceKeys(
/**
* Required. The ID of the user the device belongs to. Must match the user ID used when logging in.
*/