Skip to content

Commit

Permalink
remove leftover testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
douira committed Feb 10, 2023
1 parent bd78531 commit 0dc3e29
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -677,14 +677,6 @@ public static void transformFragmentCore(ASTParser t, TranslationUnit tree, Root
declaration.detachParent();
}

// for test consistency: sort the new declarations by position in the
// original declaration and then translation unit index
newDeclarationData.sort(Comparator
.<NewDeclarationData>comparingInt(
data -> tree.getChildren().indexOf(data.member.getAncestor(ExternalDeclaration.class)))
.thenComparingInt(
data -> data.member.getAncestor(TypeAndInitDeclaration.class).getMembers().indexOf(data.member)));

// generate new declarations with layout qualifiers for each outColor member
ArrayList<ExternalDeclaration> newDeclarations = new ArrayList<ExternalDeclaration>();

Expand Down

0 comments on commit 0dc3e29

Please sign in to comment.