Remove Device ID

This commit is contained in:
Torsten Grote
2016-11-18 12:27:47 -02:00
parent cb8e0beea9
commit 1697c2af04
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/>