Skip to content

Commit

Permalink
Merge pull request #3327 from BsAtHome/fix_dup-inherit-method
Browse files Browse the repository at this point in the history
Remove duplicated non-virtual base-class method
  • Loading branch information
andypugh authored Feb 6, 2025
2 parents 74fe1aa + 43dbebc commit d7588c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/libnml/nml/nmlmsg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,3 @@ void NMLmsg::clear()
size = sizeof(NMLmsg);
}
}

/* Error message stub for base class. */
/* update should only be called with derived classes. */
void NMLmsg::update(CMS * cms)
{
rcs_print_error("update called for NMLmsg base class.");
rcs_print_error("(This is an error.)\n");
cms->status = CMS_MISC_ERROR;
}
2 changes: 0 additions & 2 deletions src/libnml/nml/nmlmsg.hh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ class NMLmsg {
NMLTYPE type; /* Each derived type should have a unique id */
long size; /* The size is used so that the entire buffer
is not copied unnecessarily. */

void update(CMS *);
};

// This is just a symbol passed to the RCS Java Tools (CodeGen, RCS-Design, RCS-Diagnostis)
Expand Down

0 comments on commit d7588c4

Please sign in to comment.