Skip to content

Commit 830b424

Browse files
authored
Merge pull request #63 from zickgraf/master
Get rid of some options which are supported automatically
2 parents 59674a4 + 126d7f6 commit 830b424

File tree

5 files changed

+7
-27
lines changed

5 files changed

+7
-27
lines changed

PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "FinSetsForCAP",
1212
Subtitle := "The elementary topos of (skeletal) finite sets",
13-
Version := "2020.11-02",
13+
Version := "2020.11-03",
1414

1515
Date := Concatenation( "01/", ~.Version{[ 6, 7 ]}, "/", ~.Version{[ 1 .. 4 ]} ),
1616
License := "GPL-2.0-or-later",

gap/FinSetsForCAP.gd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ DeclareAttribute( "AsList",
6262

6363
#! @Description
6464
#! Construct a category of finite sets.
65-
#! Accepts the options <C>overhead</C> (default: <C>true</C>) and
66-
#! <C>FinalizeCategory</C> (default: <C>true</C>).
6765
#! @Returns a &CAP; category
6866
DeclareOperation( "CategoryOfFinSets", [ ] );
6967

gap/FinSetsForCAP.gi

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ InstallMethod( CategoryOfFinSets,
99
[ ],
1010

1111
function ( )
12-
local overhead_option, finalize_option, FinSets;
12+
local FinSets;
1313

14-
overhead_option := CAP_INTERNAL_RETURN_OPTION_OR_DEFAULT( "overhead", true );
15-
16-
finalize_option := CAP_INTERNAL_RETURN_OPTION_OR_DEFAULT( "FinalizeCategory", true );
17-
18-
FinSets := CreateCapCategory( "FinSets" : overhead := overhead_option );
14+
FinSets := CreateCapCategory( "FinSets" );
1915

2016
FinSets!.category_as_first_argument := true;
2117

@@ -29,11 +25,7 @@ InstallMethod( CategoryOfFinSets,
2925

3026
INSTALL_FUNCTIONS_FOR_FIN_SETS( FinSets );
3127

32-
if finalize_option then
33-
34-
Finalize( FinSets );
35-
36-
fi;
28+
Finalize( FinSets );
3729

3830
return FinSets;
3931

gap/SkeletalFinSetsForCAP.gd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ DeclareAttribute( "AsList",
5454

5555
#! @Description
5656
#! Construct a category of skeletal finite sets.
57-
#! Accepts the options <C>overhead</C> (default: <C>true</C>) and
58-
#! <C>FinalizeCategory</C> (default: <C>true</C>).
5957
#! @Returns a &CAP; category
6058
DeclareOperation( "CategoryOfSkeletalFinSets", [ ] );
6159

gap/SkeletalFinSetsForCAP.gi

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ InstallMethod( CategoryOfSkeletalFinSets,
99
[ ],
1010

1111
function ( )
12-
local overhead_option, finalize_option, cat;
12+
local cat;
1313

14-
overhead_option := CAP_INTERNAL_RETURN_OPTION_OR_DEFAULT( "overhead", true );
15-
16-
finalize_option := CAP_INTERNAL_RETURN_OPTION_OR_DEFAULT( "FinalizeCategory", true );
17-
18-
cat := CreateCapCategory( "SkeletalFinSets" : overhead := overhead_option );
14+
cat := CreateCapCategory( "SkeletalFinSets" );
1915

2016
cat!.category_as_first_argument := true;
2117

@@ -31,11 +27,7 @@ InstallMethod( CategoryOfSkeletalFinSets,
3127

3228
INSTALL_FUNCTIONS_FOR_SKELETAL_FIN_SETS( cat );
3329

34-
if finalize_option then
35-
36-
Finalize( cat );
37-
38-
fi;
30+
Finalize( cat );
3931

4032
return cat;
4133

0 commit comments

Comments
 (0)