Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomofiorin committed Oct 10, 2024
1 parent 3ec0e02 commit b621ff9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
23 changes: 0 additions & 23 deletions src/colvarvalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,29 +153,6 @@ std::string const colvarvalue::type_keyword(Type t)
}


size_t colvarvalue::num_df(Type t)
{
switch (t) {
case colvarvalue::type_notset:
default:
return 0; break;
case colvarvalue::type_scalar:
return 1; break;
case colvarvalue::type_3vector:
return 3; break;
case colvarvalue::type_unit3vector:
case colvarvalue::type_unit3vectorderiv:
return 2; break;
case colvarvalue::type_quaternion:
case colvarvalue::type_quaternionderiv:
return 3; break;
case colvarvalue::type_vector:
// the size of a vector is unknown without its object
return 0; break;
}
}


size_t colvarvalue::num_dimensions(Type t)
{
switch (t) {
Expand Down
3 changes: 0 additions & 3 deletions src/colvarvalue.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ class colvarvalue {
/// User keywords for specifying value types in the configuration
static std::string const type_keyword(Type t);

/// Number of degrees of freedom for each supported type
static size_t num_df(Type t);

/// Number of dimensions for each supported type (used to allocate vector1d_value)
static size_t num_dimensions(Type t);

Expand Down

0 comments on commit b621ff9

Please sign in to comment.