Skip to content

Commit df78779

Browse files
simplified code in CAP_INTERNAL_INSTALL_OPPOSITE_ADDS_FROM_CATEGORY
1 parent e859c00 commit df78779

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

CAP/gap/OppositeCategory.gi

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ BindGlobal( "CAP_INTERNAL_INSTALL_OPPOSITE_ADDS_FROM_CATEGORY",
8989

9090
recnames := AsSortedList( RecNames( CAP_INTERNAL_METHOD_NAME_RECORD ) );
9191

92+
## No support for twocells
93+
recnames := Difference( recnames,
94+
[ "HorizontalPreCompose",
95+
"HorizontalPostCompose",
96+
"VerticalPreCompose",
97+
"VerticalPostCompose",
98+
"IdenticalTwoCell" ] );
99+
92100
for current_recname in recnames do
93101

94102
current_entry := CAP_INTERNAL_METHOD_NAME_RECORD.( current_recname );
@@ -97,15 +105,6 @@ BindGlobal( "CAP_INTERNAL_INSTALL_OPPOSITE_ADDS_FROM_CATEGORY",
97105
continue;
98106
fi;
99107

100-
## No support for twocells
101-
if current_recname in [ "HorizontalPreCompose",
102-
"HorizontalPostCompose",
103-
"VerticalPreCompose",
104-
"VerticalPostCompose",
105-
"IdenticalTwoCell" ] then
106-
continue;
107-
fi;
108-
109108
## Conservative
110109
if not IsBound( current_entry.dual_operation ) then
111110
continue;

0 commit comments

Comments
 (0)