Skip to content

Commit

Permalink
Drop ImpliedWriteGuard() from opers.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
rbehrends committed Oct 13, 2020
1 parent 48177e2 commit 8ade01f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/opers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1501,10 +1501,6 @@ static Obj FuncCOMPACT_TYPE_IDS(Obj self)
// TYPE_OBJ
static inline Obj TYPE_OBJ_FEO(Obj obj)
{
#ifdef HPCGAP
/* TODO: We need to be able to automatically derive this. */
ImpliedWriteGuard(obj);
#endif
switch ( TNUM_OBJ( obj ) ) {
case T_COMOBJ:
return TYPE_COMOBJ(obj);
Expand Down Expand Up @@ -2502,9 +2498,6 @@ static Obj WRAP_NAME(Obj name, const char *addon)
UInt name_len = GET_LEN_STRING(name);
UInt addon_len = strlen(addon);
Obj fname = NEW_STRING( name_len + addon_len + 2 );
#ifdef HPCGAP
ImpliedWriteGuard(fname);
#endif

char *ptr = CSTR_STRING(fname);
memcpy( ptr, addon, addon_len );
Expand Down

0 comments on commit 8ade01f

Please sign in to comment.