Skip to content

Commit

Permalink
Remove redundant infomap query
Browse files Browse the repository at this point in the history
  • Loading branch information
HGuillemet committed Dec 30, 2023
1 parent dfffed0 commit 2eb523d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/bytedeco/javacpp/tools/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -2439,9 +2439,6 @@ boolean function(Context context, DeclarationList declList) throws ParserExcepti
// with the class info. Kept for now for backwards compatibility.
if (info == null) {
info = infoMap.getFirst(dcl.cppName + templateArgs);
if (info == null && !templateArgs.isEmpty()) {
info = infoMap.getFirst(dcl.cppName);
}
}
if (!type.constructor && !type.destructor && !type.operator && (context.templateMap == null || context.templateMap.full())) {
infoMap.put(info != null ? new Info(info).cppNames(fullname).javaNames(null) : new Info(fullname));
Expand Down

0 comments on commit 2eb523d

Please sign in to comment.