Fix dead code in generated update companions

This commit is contained in:
Simon Binder 2019-06-21 09:44:38 +02:00
parent b79611e6e0
commit 6ac9109c0a
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
3 changed files with 1 additions and 10 deletions

View File

@ -87,7 +87,6 @@ class CategoriesCompanion implements UpdateCompanion<Category> {
throw ArgumentError(
'Hit an invalid state while serializing data. Did you run the build step?');
}
;
}
}
@ -277,7 +276,6 @@ class RecipesCompanion implements UpdateCompanion<Recipe> {
throw ArgumentError(
'Hit an invalid state while serializing data. Did you run the build step?');
}
;
}
}
@ -478,7 +476,6 @@ class IngredientsCompanion implements UpdateCompanion<Ingredient> {
throw ArgumentError(
'Hit an invalid state while serializing data. Did you run the build step?');
}
;
}
}
@ -675,7 +672,6 @@ class IngredientInRecipesCompanion
throw ArgumentError(
'Hit an invalid state while serializing data. Did you run the build step?');
}
;
}
}

View File

@ -146,7 +146,6 @@ class TodosTableCompanion implements UpdateCompanion<TodoEntry> {
throw ArgumentError(
'Hit an invalid state while serializing data. Did you run the build step?');
}
;
}
}
@ -352,7 +351,6 @@ class CategoriesCompanion implements UpdateCompanion<Category> {
throw ArgumentError(
'Hit an invalid state while serializing data. Did you run the build step?');
}
;
}
}
@ -567,7 +565,6 @@ class UsersCompanion implements UpdateCompanion<User> {
throw ArgumentError(
'Hit an invalid state while serializing data. Did you run the build step?');
}
;
}
}
@ -767,7 +764,6 @@ class SharedTodosCompanion implements UpdateCompanion<SharedTodo> {
throw ArgumentError(
'Hit an invalid state while serializing data. Did you run the build step?');
}
;
}
}
@ -931,7 +927,6 @@ class TableWithoutPKCompanion implements UpdateCompanion<TableWithoutPKData> {
throw ArgumentError(
'Hit an invalid state while serializing data. Did you run the build step?');
}
;
}
}

View File

@ -48,6 +48,6 @@ class UpdateCompanionWriter {
..write('default: throw ArgumentError('
"'Hit an invalid state while serializing data. Did you run the build "
"step?');")
..write('};}\n');
..write('}\n}\n');
}
}