mirror of https://github.com/AMT-Cheif/drift.git
Fix dead code in generated update companions
This commit is contained in:
parent
b79611e6e0
commit
6ac9109c0a
|
@ -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?');
|
||||
}
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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?');
|
||||
}
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue