Remove operator< from builtin_data_t
It was unused.
This commit is contained in:
parent
139b74d8eb
commit
9aac663bb0
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user