Skip to content

Commit ff06a6d

Browse files
authored
Stop using InstallValue (#21)
1 parent 30f03bc commit ff06a6d

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lib/resclass.gd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,8 @@ DeclareProperty( "IsResidueClass", IsObject );
218218

219219
#############################################################################
220220
##
221-
#V RESCLASSES_VIEWINGFORMAT . . . current viewing format ("short" or "long")
222221
#F ResidueClassUnionViewingFormat( format ) . short <--> long viewing format
223222
##
224-
DeclareGlobalVariable( "RESCLASSES_VIEWINGFORMAT" );
225223
DeclareGlobalFunction( "ResidueClassUnionViewingFormat" );
226224

227225
#############################################################################

lib/resclass.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3316,7 +3316,7 @@ InstallMethod( ViewObj,
33163316
#V RESCLASSES_VIEWINGFORMAT . . . current viewing format ("short" or "long")
33173317
#F ResidueClassUnionViewingFormat( format ) . short <--> long viewing format
33183318
##
3319-
InstallValue( RESCLASSES_VIEWINGFORMAT, "long" );
3319+
BindGlobal( "RESCLASSES_VIEWINGFORMAT", "long" );
33203320
InstallGlobalFunction( ResidueClassUnionViewingFormat,
33213321

33223322
function ( format )

lib/resclaux.g

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ RESCLASSES_VIEWINGFORMAT_BACKUP := "long";
2424
BindGlobal( "ResClassesDoThingsToBeDoneBeforeTest",
2525

2626
function ( )
27-
RESCLASSES_WARNINGLEVEL_BACKUP := InfoLevel(InfoWarning);;
27+
RESCLASSES_WARNINGLEVEL_BACKUP := InfoLevel(InfoWarning);
2828
SetInfoLevel(InfoWarning,0);
2929
SetAssertionLevel(0);
30-
RESCLASSES_VIEWINGFORMAT_BACKUP := RESCLASSES_VIEWINGFORMAT;;
30+
RESCLASSES_VIEWINGFORMAT_BACKUP := ValueGlobal("RESCLASSES_VIEWINGFORMAT");
3131
ResidueClassUnionViewingFormat("long");
3232
end );
3333

0 commit comments

Comments
 (0)