@@ -66,7 +66,6 @@ class StructFieldDeclaration {
6666
6767 final StructFieldDescription desc = new StructFieldDescription ();
6868 Method setter ;
69- ResolvedMember resolvedSetter ;
7069 long index = -1 , unionWith = -1 ;//, byteOffset = -1;
7170 Class <?> valueClass ;
7271 Class <?> declaringClass ;
@@ -216,38 +215,6 @@ protected static ResolvedTypeWithMembers resolveType( Class<?> structClass ) {
216215 AnnotationConfiguration annConfig = new AnnotationConfiguration .StdConfiguration (AnnotationInclusion .INCLUDE_BUT_DONT_INHERIT );
217216 return mr .resolve (classType , annConfig , null );
218217 }
219-
220- protected static <T extends Member > void updateDecl (StructFieldDeclaration decl , ResolvedMember <T > member ) {
221- decl .declaringClass = member .getRawMember ().getDeclaringClass ();
222- Field field = member .get (Field .class );
223- Bits bits = member .get (Bits .class );
224- Alignment alignment = member .get (Alignment .class );
225- Array arr = member .get (Array .class );
226-
227- if ( field != null ) {
228- decl .index = field .value ();
229- decl .unionWith = field .unionWith ();
230- }
231- if ( decl .unionWith < 0 && decl .declaringClass .getAnnotation (Union .class ) != null ) {
232- decl .unionWith = 0 ;
233- }
234- if ( bits != null ) {
235- decl .desc .bitLength = bits .value ();
236- }
237- if ( alignment != null ) {
238- decl .desc .alignment = alignment .value ();
239- }
240- if ( arr != null ) {
241- long length = 1 ;
242- for (long dim : arr .value ()) {
243- length *= dim ;
244- }
245- decl .desc .arrayLength = length ;
246- decl .desc .isArray = true ;
247- }
248- decl .desc .isCLong = member .get (org .bridj .ann .CLong .class ) != null ;
249- decl .desc .isSizeT = member .get (org .bridj .ann .Ptr .class ) != null ;
250- }
251218
252219 @ Deprecated
253220 protected static StructFieldDeclaration fromField (java .lang .reflect .Field getter ) {
0 commit comments