Merge branch '757-remove-deviceid-code' into 'master'

Remove Device ID

Closes #757

See merge request !423
This commit is contained in:
akwizgran
2016-11-18 15:54:28 +00:00
9 changed files with 6 additions and 82 deletions

View File

@@ -1,16 +0,0 @@
package org.briarproject.api;
/**
* Type-safe wrapper for a byte array that uniquely identifies a device.
*/
public class DeviceId extends UniqueId {
public DeviceId(byte[] id) {
super(id);
}
@Override
public boolean equals(Object o) {
return o instanceof DeviceId && super.equals(o);
}
}

View File

@@ -1,6 +1,5 @@
package org.briarproject.api.db;
import org.briarproject.api.DeviceId;
import org.briarproject.api.TransportId;
import org.briarproject.api.contact.Contact;
import org.briarproject.api.contact.ContactId;
@@ -205,13 +204,6 @@ public interface DatabaseComponent {
Collection<ContactId> getContacts(Transaction txn, AuthorId a)
throws DbException;
/**
* Returns the unique ID for this device.
* <p/>
* Read-only.
*/
DeviceId getDeviceId(Transaction txn) throws DbException;
/**
* Returns the group with the given ID.
* <p/>