Skip to content

Commit

Permalink
Get rid of PrintObjFull
Browse files Browse the repository at this point in the history
It was unused since 1998-04-09
  • Loading branch information
fingolfin committed Nov 24, 2017
1 parent 365fb0e commit 64ccbd4
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
3 changes: 1 addition & 2 deletions src/calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,7 @@ extern Obj ArgStringToList(const Char *nams_c);
**
*F PrintFunction( <func> ) . . . . . . . . . . . . . . . print a function
**
** 'PrintFunction' prints the function <func> in abbreviated form if
** 'PrintObjFull' is false.
** 'PrintFunction' prints the function <func> .
*/
extern void PrintFunction (
Obj func );
Expand Down
1 change: 0 additions & 1 deletion src/gapstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ typedef struct GAPState {
Obj PrintObjThis;
Int PrintObjIndex;
Int PrintObjDepth;
Int PrintObjFull;
#if defined(HPCGAP)
Obj PrintObjThissObj;
Obj * PrintObjThiss;
Expand Down
2 changes: 0 additions & 2 deletions src/objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,8 +898,6 @@ Obj FuncMakeImmutable( Obj self, Obj obj)

/* TL: Int PrintObjIndex; */

/* TL: Int PrintObjFull; */

/* TL: Int PrintObjDepth; */

#define MAXPRINTDEPTH 1024L
Expand Down
2 changes: 0 additions & 2 deletions src/objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,6 @@ extern void PrintObj (
/* TL: extern Int PrintObjIndex; */
/* TL: extern Int PrintObjDepth; */

/* TL: extern Int PrintObjFull; */

extern void (* PrintObjFuncs[LAST_REAL_TNUM+1]) ( Obj obj );


Expand Down
4 changes: 0 additions & 4 deletions src/streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,9 +786,7 @@ static Obj PRINT_OR_APPEND_TO(Obj args, int append)
PrintString1(arg);
}
else if ( TNUM_OBJ(arg) == T_FUNCTION ) {
STATE(PrintObjFull) = 1;
PrintFunction( arg );
STATE(PrintObjFull) = 0;
}
else {
memcpy( readJmpError, STATE(ReadJmpError), sizeof(syJmp_buf) );
Expand Down Expand Up @@ -848,9 +846,7 @@ static Obj PRINT_OR_APPEND_TO_STREAM(Obj args, int append)
PrintString1(arg);
}
else if ( TNUM_OBJ( arg ) == T_FUNCTION ) {
STATE(PrintObjFull) = 1;
PrintFunction( arg );
STATE(PrintObjFull) = 0;
}
else {
PrintObj( arg );
Expand Down

0 comments on commit 64ccbd4

Please sign in to comment.