Преглед на файлове

Revert "Make Server's hashCode stable vs. version changes"

This reverts commit 5627e92619edb1bba142a5c109d2c1793b00da4d.
Andreas Feldner преди 3 години
родител
ревизия
805ec3e61a
променени са 1 файла, в които са добавени 0 реда и са изтрити 5 реда
  1. 0 5
      app/src/main/java/com/nextcloud/client/account/Server.kt

+ 0 - 5
app/src/main/java/com/nextcloud/client/account/Server.kt

@@ -24,7 +24,6 @@ import android.os.Parcel
 import android.os.Parcelable
 import com.owncloud.android.lib.resources.status.OwnCloudVersion
 import java.net.URI
-import java.util.Objects
 
 /**
  * This object provides all information necessary to interact
@@ -43,10 +42,6 @@ data class Server(val uri: URI, val version: OwnCloudVersion) : Parcelable {
         writeSerializable(uri)
         writeParcelable(version, 0)
     }
-    
-    override fun hashCode() = 
-        // a server is identified by its uri, the version is an attribute of this one server
-        Objects.hash(uri)
 
     companion object {
         @JvmField