diff --git a/hive_generator/lib/src/class_builder.dart b/hive_generator/lib/src/class_builder.dart index 8b9ce0202..ccc49644a 100644 --- a/hive_generator/lib/src/class_builder.dart +++ b/hive_generator/lib/src/class_builder.dart @@ -33,11 +33,6 @@ class ClassBuilder extends Builder { // The remaining fields to initialize. var fields = setters.toList(); - // Empty classes - if (constr!.parameters.isEmpty && fields.isEmpty) { - return 'return ${cls.name}();'; - } - var code = StringBuffer(); code.writeln(''' final numOfFields = reader.readByte();