Everywhere: Fix trivial -Wunnecessary-virtual-specifier instances

- `Threading::Thread` is not polymorphic, there is no need for a virtual
  destructor.
- `HTMLAnchorElement::has_download_preference` isn't overridden by
  anything.

This warning was introduced in llvm/llvm-project#131188.
This commit is contained in:
Daniel Bertalan 2025-05-12 15:31:17 +02:00 committed by Andrew Kaster
commit a2167f126d
Notes: github-actions[bot] 2025-05-12 17:41:45 +00:00
2 changed files with 4 additions and 2 deletions

View file

@ -55,7 +55,7 @@ public:
return adopt_nonnull_ref_or_enomem(new (nothrow) Thread(move(action), thread_name));
}
virtual ~Thread();
~Thread();
ErrorOr<void> set_priority(int priority);
ErrorOr<int> get_priority() const;