From 61e148f58ba021af872106919e86b0fae7941309 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Thu, 14 Mar 2024 11:59:26 +0530 Subject: [PATCH] model: Drop unused model classes Signed-off-by: Aayush Gupta --- .../com/aurora/store/data/model/Accent.kt | 36 ----------------- .../aurora/store/data/model/AppPermission.kt | 39 ------------------- .../java/com/aurora/store/data/model/Theme.kt | 37 ------------------ 3 files changed, 112 deletions(-) delete mode 100644 app/src/main/java/com/aurora/store/data/model/Accent.kt delete mode 100644 app/src/main/java/com/aurora/store/data/model/AppPermission.kt delete mode 100644 app/src/main/java/com/aurora/store/data/model/Theme.kt diff --git a/app/src/main/java/com/aurora/store/data/model/Accent.kt b/app/src/main/java/com/aurora/store/data/model/Accent.kt deleted file mode 100644 index 89971e126..000000000 --- a/app/src/main/java/com/aurora/store/data/model/Accent.kt +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Aurora Store - * Copyright (C) 2021, Rahul Kumar Patel - * - * Aurora Store is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * Aurora Store is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Aurora Store. If not, see . - * - */ - -package com.aurora.store.data.model - -data class Accent( - var id: Int, - var accent: String -) { - override fun equals(other: Any?): Boolean { - return when (other) { - is Accent -> other.id == id - else -> false - } - } - - override fun hashCode(): Int { - return id.hashCode() - } -} diff --git a/app/src/main/java/com/aurora/store/data/model/AppPermission.kt b/app/src/main/java/com/aurora/store/data/model/AppPermission.kt deleted file mode 100644 index 98cd19d74..000000000 --- a/app/src/main/java/com/aurora/store/data/model/AppPermission.kt +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Aurora Store - * Copyright (C) 2021, Rahul Kumar Patel - * - * Aurora Store is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * Aurora Store is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Aurora Store. If not, see . - * - */ - -package com.aurora.store.data.model - -data class AppPermission( - var name: String, - var permission: String, - var raw: String, - var flags: Int, - var icon: Int -) { - override fun equals(other: Any?): Boolean { - return when (other) { - is AppPermission -> other.permission == permission - else -> false - } - } - - override fun hashCode(): Int { - return permission.hashCode() - } -} diff --git a/app/src/main/java/com/aurora/store/data/model/Theme.kt b/app/src/main/java/com/aurora/store/data/model/Theme.kt deleted file mode 100644 index 48dd94570..000000000 --- a/app/src/main/java/com/aurora/store/data/model/Theme.kt +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Aurora Store - * Copyright (C) 2021, Rahul Kumar Patel - * - * Aurora Store is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * Aurora Store is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Aurora Store. If not, see . - * - */ - -package com.aurora.store.data.model - -data class Theme( - var id: Int, - var title: String, - var subtitle: String -) { - override fun equals(other: Any?): Boolean { - return when (other) { - is Theme -> other.id == id - else -> false - } - } - - override fun hashCode(): Int { - return id.hashCode() - } -}