Skip to content

Commit

Permalink
Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rdulmina committed Nov 18, 2024
1 parent eec5836 commit 3ff9914
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ public static Object getAnnotValue(TypedescValue typedescValue, BString annotTag
}
MapValue annotations = ((TypedescValueImpl) typedescValue).annotations;
if (annotations != null) {
// ATM only field annotations will reach here
return annotations.get(annotTag);
}
return annotatableType.getAnnotation(annotTag);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3180,20 +3180,6 @@ private List<BIRAnnotationAttachment> getBIRAnnotAttachmentsForASTAnnotAttachmen
return annotationAttachments;
}

private BIROperand getAnnotations(BTypeSymbol typeSymbol, BIRGenEnv env) {
if (typeSymbol == null || typeSymbol.annotations == null) {
return null;
}
return new BIROperand(getAnnotations(typeSymbol.annotations, env));
}

private BIRVariableDcl getAnnotations(BVarSymbol annotations, BIRGenEnv env) {
if (env.symbolVarMap.containsKey(annotations)) {
return env.symbolVarMap.get(annotations);
}
return globalVarMap.get(annotations);
}

private void addReturnBB(Location pos) {
if (this.env.returnBB == null) {
BIRBasicBlock returnBB = new BIRBasicBlock(this.env.nextBBId());
Expand Down

0 comments on commit 3ff9914

Please sign in to comment.