fix(launcher) cleanup dead code

This commit is contained in:
Lemmy
2026-04-09 17:23:12 -04:00
parent 0c959cdb50
commit 704feafd0c
4 changed files with 2 additions and 10 deletions
+2 -1
View File
@@ -216,7 +216,7 @@ See [CONFIG.md](/mnt/storage/GitHub/noctalia-dev/Nextalia/CONFIG.md) for the ful
- [ ] Desktop widgets
- [ ] Shell update checker
- [ ] Calendar integration
- [ ] Plugin system
- [ ] Plugin system (Luau)
### Controls (`src/ui/controls/`)
@@ -225,6 +225,7 @@ See [CONFIG.md](/mnt/storage/GitHub/noctalia-dev/Nextalia/CONFIG.md) for the ful
- [ ] Grid view
- [ ] Context menu
- [ ] Color picker
- [ ] File and folder picker <- or use system dialog ?
### Widgets
-1
View File
@@ -418,7 +418,6 @@ void Application::initUi() {
launcherPanel->addProvider(std::make_unique<AppProvider>(&m_wayland));
launcherPanel->addProvider(std::make_unique<MathProvider>(&m_clipboardService));
launcherPanel->addProvider(std::make_unique<EmojiProvider>(&m_clipboardService));
launcherPanel->setClipboard(&m_clipboardService);
m_panelManager.registerPanel("launcher", std::move(launcherPanel));
}
-4
View File
@@ -28,10 +28,6 @@ constexpr float kIconSize = 32.0f;
LauncherPanel::LauncherPanel() = default;
void LauncherPanel::setClipboard(ClipboardService* clipboard) {
m_clipboard = clipboard;
}
void LauncherPanel::addProvider(std::unique_ptr<LauncherProvider> provider) {
provider->initialize();
m_providers.push_back(std::move(provider));
-4
View File
@@ -4,8 +4,6 @@
#include "launcher/usage_tracker.h"
#include "shell/panel/panel.h"
class ClipboardService;
#include <cstddef>
#include <memory>
#include <string>
@@ -25,7 +23,6 @@ public:
LauncherPanel();
void addProvider(std::unique_ptr<LauncherProvider> provider);
void setClipboard(ClipboardService* clipboard);
void create() override;
void layout(Renderer& renderer, float width, float height) override;
@@ -51,7 +48,6 @@ private:
std::vector<std::unique_ptr<LauncherProvider>> m_providers;
std::vector<LauncherResult> m_results;
UsageTracker m_usageTracker;
ClipboardService* m_clipboard = nullptr;
Flex* m_container = nullptr;
Input* m_input = nullptr;