mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 16:29:44 -05:00
Remove unused variables
This commit is contained in:
parent
b39522f874
commit
9d106d6bfc
@ -50,7 +50,6 @@ bool Kdbx4Writer::writeDatabase(QIODevice* device, Database* db)
|
|||||||
QByteArray masterSeed = randomGen()->randomArray(32);
|
QByteArray masterSeed = randomGen()->randomArray(32);
|
||||||
QByteArray encryptionIV = randomGen()->randomArray(ivSize);
|
QByteArray encryptionIV = randomGen()->randomArray(ivSize);
|
||||||
QByteArray protectedStreamKey = randomGen()->randomArray(64);
|
QByteArray protectedStreamKey = randomGen()->randomArray(64);
|
||||||
QByteArray startBytes;
|
|
||||||
QByteArray endOfHeader = "\r\n\r\n";
|
QByteArray endOfHeader = "\r\n\r\n";
|
||||||
|
|
||||||
if (!db->setKey(db->key(), false, true)) {
|
if (!db->setKey(db->key(), false, true)) {
|
||||||
|
@ -287,7 +287,6 @@ void KMessageWidget::setMessageType(KMessageWidget::MessageType type)
|
|||||||
|
|
||||||
// Tint close icon
|
// Tint close icon
|
||||||
auto closeButtonPixmap = d->closeButtonPixmap;
|
auto closeButtonPixmap = d->closeButtonPixmap;
|
||||||
QPixmap mask(closeButtonPixmap);
|
|
||||||
QPainter painter;
|
QPainter painter;
|
||||||
painter.begin(&closeButtonPixmap);
|
painter.begin(&closeButtonPixmap);
|
||||||
painter.setRenderHints(QPainter::HighQualityAntialiasing);
|
painter.setRenderHints(QPainter::HighQualityAntialiasing);
|
||||||
|
@ -101,7 +101,6 @@ QVariant AutoTypeMatchModel::data(const QModelIndex& index, int role) const
|
|||||||
AutoTypeMatch match = matchFromIndex(index);
|
AutoTypeMatch match = matchFromIndex(index);
|
||||||
|
|
||||||
if (role == Qt::DisplayRole) {
|
if (role == Qt::DisplayRole) {
|
||||||
QString result;
|
|
||||||
switch (index.column()) {
|
switch (index.column()) {
|
||||||
case ParentGroup:
|
case ParentGroup:
|
||||||
if (match.entry->group()) {
|
if (match.entry->group()) {
|
||||||
|
@ -463,7 +463,6 @@ void EditEntryWidget::updateSSHAgentKeyInfo()
|
|||||||
void EditEntryWidget::saveSSHAgentConfig()
|
void EditEntryWidget::saveSSHAgentConfig()
|
||||||
{
|
{
|
||||||
KeeAgentSettings settings;
|
KeeAgentSettings settings;
|
||||||
QString privateKeyPath = m_sshAgentUi->attachmentComboBox->currentText();
|
|
||||||
|
|
||||||
settings.setAddAtDatabaseOpen(m_sshAgentUi->addKeyToAgentCheckBox->isChecked());
|
settings.setAddAtDatabaseOpen(m_sshAgentUi->addKeyToAgentCheckBox->isChecked());
|
||||||
settings.setRemoveAtDatabaseClose(m_sshAgentUi->removeKeyFromAgentCheckBox->isChecked());
|
settings.setRemoveAtDatabaseClose(m_sshAgentUi->removeKeyFromAgentCheckBox->isChecked());
|
||||||
|
Loading…
Reference in New Issue
Block a user