mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Remove obsolete custom URL Filter code
This commit is contained in:
committed by
Arjan Schrijver
parent
fa5e52013b
commit
d431d73dc3
@@ -213,7 +213,6 @@ public class GBDaoGenerator {
|
||||
addAppSpecificNotificationSettings(schema, device);
|
||||
addCyclingSample(schema, user, device);
|
||||
addAudioRecordings(schema, device);
|
||||
addURLFilterEntry(schema);
|
||||
|
||||
Entity notificationFilter = addNotificationFilters(schema);
|
||||
|
||||
@@ -1438,18 +1437,6 @@ public class GBDaoGenerator {
|
||||
recording.addToOne(device, deviceId);
|
||||
}
|
||||
|
||||
private static void addURLFilterEntry(Schema schema) {
|
||||
Entity urlFilterEntry = addEntity(schema, "URLFilterEntry");
|
||||
urlFilterEntry.addIdProperty().autoincrement();
|
||||
Property urlProperty = urlFilterEntry.addStringProperty("url").notNull().getProperty();
|
||||
Property allowedProperty = urlFilterEntry.addBooleanProperty("allowed").notNull().getProperty();
|
||||
|
||||
Index indexUnique = new Index();
|
||||
indexUnique.addProperty(urlProperty);
|
||||
indexUnique.makeUnique();
|
||||
urlFilterEntry.addIndex(indexUnique);
|
||||
}
|
||||
|
||||
private static void addNotificationFilterEntry(Schema schema, Entity notificationFilterEntity) {
|
||||
Entity notificatonFilterEntry = addEntity(schema, "NotificationFilterEntry");
|
||||
notificatonFilterEntry.addIdProperty().autoincrement();
|
||||
|
||||
Reference in New Issue
Block a user