[DeckShare] Drop includes left unused by the share-response extraction

This commit is contained in:
Lukas Brübach 2026-09-18 23:57:00 +02:00
parent 6bf64ea712
commit 9bf9d9824b
3 changed files with 4 additions and 7 deletions

View file

@ -8,7 +8,6 @@
#include <QLineEdit>
#include <QMessageBox>
#include <QPushButton>
#include <QTimeZone>
#include <QVBoxLayout>
#include <libcockatrice/card/database/card_database_manager.h>
#include <libcockatrice/deck_list/deck_list.h>

View file

@ -20,7 +20,6 @@
#include <QInputDialog>
#include <QLineEdit>
#include <QMessageBox>
#include <QTimeZone>
#include <QToolBar>
#include <QTreeView>
#include <QUrl>
@ -780,8 +779,8 @@ void TabDeckStorage::shareFromTreeFinished(const Response &response, const Comma
}
const DeckShareUtils::ShareResponse share = DeckShareUtils::handleShareResponse(client, response);
showShareNotice(tr("Share link copied to the clipboard.\nExpires on %1.")
.arg(DeckShareUtils::formatShareExpiry(share.expiry)));
showShareNotice(
tr("Share link copied to the clipboard.\nExpires on %1.").arg(DeckShareUtils::formatShareExpiry(share.expiry)));
setShareModeEnabled(false);
}

View file

@ -6,7 +6,6 @@
#include "../../interface/widgets/visual_deck_storage/visual_deck_storage_widget.h"
#include "../tab_supervisor.h"
#include <QDateTime>
#include <QMessageBox>
#include <QVBoxLayout>
#include <libcockatrice/card/database/card_database_manager.h>
@ -168,8 +167,8 @@ void TabDeckStorageVisual::shareFinished(const Response &response, const Command
const DeckShareUtils::ShareResponse share = DeckShareUtils::handleShareResponse(client, response);
showShareNotice(tr("Share link copied to the clipboard.\nExpires on %1.")
.arg(DeckShareUtils::formatShareExpiry(share.expiry)));
showShareNotice(
tr("Share link copied to the clipboard.\nExpires on %1.").arg(DeckShareUtils::formatShareExpiry(share.expiry)));
exitShareMode();
}