Remove operator< from builtin_data_t

It was unused.
This commit is contained in:
ridiculousfish 2021-09-06 18:13:47 -07:00
parent 139b74d8eb
commit 9aac663bb0
2 changed files with 0 additions and 11 deletions

View File

@ -80,14 +80,6 @@
#include "wgetopt.h"
#include "wutil.h" // IWYU pragma: keep
bool builtin_data_t::operator<(const wcstring &other) const {
return std::wcscmp(this->name, other.c_str()) < 0;
}
bool builtin_data_t::operator<(const builtin_data_t *other) const {
return std::wcscmp(this->name, other->name) < 0;
}
/// Counts the number of arguments in the specified null-terminated array
int builtin_count_args(const wchar_t *const *argv) {
int argc;

View File

@ -23,9 +23,6 @@ struct builtin_data_t {
maybe_t<int> (*func)(parser_t &parser, io_streams_t &streams, const wchar_t **argv);
// Description of what the builtin does.
const wchar_t *desc;
bool operator<(const wcstring &) const;
bool operator<(const builtin_data_t *) const;
};
/// The default prompt for the read command.