mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Code cleanup
This commit is contained in:
parent
2a5bb4631b
commit
d2ce3fadf1
19 changed files with 36 additions and 81 deletions
|
|
@ -116,8 +116,6 @@ class UserProfileDBManager {
|
|||
}
|
||||
|
||||
Future deleteProfile(UserProfile profile) async {
|
||||
final finder = Finder(filter: Filter.equals("name", profile.name));
|
||||
|
||||
await store.record(profile.key).delete(await _db);
|
||||
print("Deleted user profile <${profile.key}> - '${profile.name}'");
|
||||
}
|
||||
|
|
@ -133,8 +131,6 @@ class UserProfileDBManager {
|
|||
|
||||
final profiles = await store.find(await _db);
|
||||
|
||||
List<UserProfile> profileList = [];
|
||||
|
||||
for (int idx = 0; idx < profiles.length; idx++) {
|
||||
|
||||
if (profiles[idx].key is int && profiles[idx].key == selected) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue