mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +00:00
clang-tidy: remove pointless virtual
override is already used. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
faf51e0693
commit
f9af33f223
1 changed files with 4 additions and 4 deletions
|
@ -2065,8 +2065,8 @@ static void test_lru() {
|
|||
struct test_environment_t : public environment_t {
|
||||
std::map<wcstring, wcstring> vars;
|
||||
|
||||
virtual maybe_t<env_var_t> get(const wcstring &key,
|
||||
env_mode_flags_t mode = ENV_DEFAULT) const override {
|
||||
maybe_t<env_var_t> get(const wcstring &key,
|
||||
env_mode_flags_t mode = ENV_DEFAULT) const override {
|
||||
UNUSED(mode);
|
||||
auto iter = vars.find(key);
|
||||
if (iter != vars.end()) {
|
||||
|
@ -2087,8 +2087,8 @@ struct test_environment_t : public environment_t {
|
|||
|
||||
/// A test environment that knows about PWD.
|
||||
struct pwd_environment_t : public test_environment_t {
|
||||
virtual maybe_t<env_var_t> get(const wcstring &key,
|
||||
env_mode_flags_t mode = ENV_DEFAULT) const override {
|
||||
maybe_t<env_var_t> get(const wcstring &key,
|
||||
env_mode_flags_t mode = ENV_DEFAULT) const override {
|
||||
if (key == L"PWD") {
|
||||
return env_var_t{wgetcwd(), 0};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue