From f713cba2856654855c128f89e7a2adc28bbe28b9 Mon Sep 17 00:00:00 2001 From: Christian Trimble Date: Wed, 18 Jan 2017 09:27:43 -0700 Subject: [PATCH] removed new, unused code --- .../org/bridj/StructFieldDeclaration.java | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/src/main/java/org/bridj/StructFieldDeclaration.java b/src/main/java/org/bridj/StructFieldDeclaration.java index ae350082..1aa5d732 100644 --- a/src/main/java/org/bridj/StructFieldDeclaration.java +++ b/src/main/java/org/bridj/StructFieldDeclaration.java @@ -66,7 +66,6 @@ class StructFieldDeclaration { final StructFieldDescription desc = new StructFieldDescription(); Method setter; - ResolvedMember resolvedSetter; long index = -1, unionWith = -1;//, byteOffset = -1; Class valueClass; Class declaringClass; @@ -216,38 +215,6 @@ protected static ResolvedTypeWithMembers resolveType( Class structClass ) { AnnotationConfiguration annConfig = new AnnotationConfiguration.StdConfiguration(AnnotationInclusion.INCLUDE_BUT_DONT_INHERIT); return mr.resolve(classType, annConfig, null); } - - protected static void updateDecl(StructFieldDeclaration decl, ResolvedMember member ) { - decl.declaringClass = member.getRawMember().getDeclaringClass(); - Field field = member.get(Field.class); - Bits bits = member.get(Bits.class); - Alignment alignment = member.get(Alignment.class); - Array arr = member.get(Array.class); - - if( field != null ) { - decl.index = field.value(); - decl.unionWith = field.unionWith(); - } - if( decl.unionWith < 0 && decl.declaringClass.getAnnotation(Union.class) != null) { - decl.unionWith = 0; - } - if( bits != null ) { - decl.desc.bitLength = bits.value(); - } - if( alignment != null ) { - decl.desc.alignment = alignment.value(); - } - if( arr != null ) { - long length = 1; - for (long dim : arr.value()) { - length *= dim; - } - decl.desc.arrayLength = length; - decl.desc.isArray = true; - } - decl.desc.isCLong = member.get(org.bridj.ann.CLong.class) != null; - decl.desc.isSizeT = member.get(org.bridj.ann.Ptr.class) != null; - } @Deprecated protected static StructFieldDeclaration fromField(java.lang.reflect.Field getter) {