diff --git a/src/modify.cpp b/src/modify.cpp index 07301c4779..aadfd5cc3e 100644 --- a/src/modify.cpp +++ b/src/modify.cpp @@ -1091,18 +1091,6 @@ int Modify::find_fix(const std::string &id) return -1; } -/* ---------------------------------------------------------------------- - find a fix by style - return index of fix or -1 if not found -------------------------------------------------------------------------- */ - -int Modify::find_fix_by_style(const char *style) -{ - for (int ifix = 0; ifix < nfix; ifix++) - if (utils::strmatch(fix[ifix]->style,style)) return ifix; - return -1; -} - /* ---------------------------------------------------------------------- look up pointer to Fix class by fix-ID return null pointer if ID not found @@ -1386,18 +1374,6 @@ int Modify::find_compute(const std::string &id) return -1; } -/* ---------------------------------------------------------------------- - find a compute by style - return index of compute or -1 if not found -------------------------------------------------------------------------- */ - -int Modify::find_compute_by_style(const char *style) -{ - for (int icompute = 0; icompute < ncompute; icompute++) - if (utils::strmatch(compute[icompute]->style,style)) return icompute; - return -1; -} - /* ---------------------------------------------------------------------- look up pointer to Compute class by compute-ID return null pointer if ID not found @@ -1412,8 +1388,8 @@ Compute *Modify::get_compute_by_id(const std::string &id) const } /* ---------------------------------------------------------------------- - look up pointer to compute by compute style name - return null pointer if style not used + look up pointers to computes by compute style name + return vector with matching pointers ------------------------------------------------------------------------- */ const std::vector Modify::get_compute_by_style(const std::string &style) const diff --git a/src/modify.h b/src/modify.h index 0ea3bc2c7c..60365cd56c 100644 --- a/src/modify.h +++ b/src/modify.h @@ -111,7 +111,6 @@ class Modify : protected Pointers { // deprecated API int find_fix(const std::string &); - int find_fix_by_style(const char *); // new API Fix *get_fix_by_id(const std::string &) const; const std::vector get_fix_by_style(const std::string &) const; @@ -125,7 +124,6 @@ class Modify : protected Pointers { // deprecated API int find_compute(const std::string &); - int find_compute_by_style(const char *); // new API Compute *get_compute_by_id(const std::string &) const; const std::vector get_compute_by_style(const std::string &) const;