Skip to content

Commit 4ecf1e0

Browse files
committed
code gen - remove unused variable
1 parent f5e6544 commit 4ecf1e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/objectbox_model_generator/lib/src/code_chunks.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "package:objectbox/src/modelinfo/index.dart";
22

33
class CodeChunks {
4-
static String modelInfoLoader(String allModelsJsonFilename) => """
4+
static String modelInfoLoader() => """
55
Map<int, ModelEntity> _allOBXModelEntities = null;
66
77
void _loadOBXModelEntities() {

bin/objectbox_model_generator/lib/src/generator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class EntityGenerator extends GeneratorForAnnotation<obx.Entity> {
3939
// optionally add header for loading the .g.json file
4040
var ret = "";
4141
if (entityHeaderDone.indexOf(inputFileId) == -1) {
42-
ret += CodeChunks.modelInfoLoader(ALL_MODELS_JSON);
42+
ret += CodeChunks.modelInfoLoader();
4343
entityHeaderDone.add(inputFileId);
4444
}
4545

0 commit comments

Comments
 (0)