Skip to content

Commit

Permalink
removed unneded function
Browse files Browse the repository at this point in the history
  • Loading branch information
iiLubos committed Sep 6, 2023
1 parent 1c678f7 commit 67a2774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
10 changes: 4 additions & 6 deletions core/merginapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1389,12 +1389,10 @@ bool MerginApi::extractProjectName( const QString &sourceString, QString &projec

QString MerginApi::extractServerErrorCode( const QByteArray &data )
{
return extractServerErrorStringValue( data, QStringLiteral( "code" ) );
}

QString MerginApi::extractServerErrorStringValue( const QByteArray &data, const QString &key )
{
return extractServerErrorValue( data, key ).toString();
QVariant code = extractServerErrorValue( data, QStringLiteral( "code" ) );
if ( code.isValid() )
return code.toString();
return QString();
}

QVariant MerginApi::extractServerErrorValue( const QByteArray &data, const QString &key )
Expand Down
6 changes: 0 additions & 6 deletions core/merginapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -701,12 +701,6 @@ class MerginApi: public QObject
*/
QString extractServerErrorCode( const QByteArray &data );
/**
* Extracts string value of an error json. If its not json or value cannot be parsed, QString() is return;
* \param data Data received from mergin server on a request failed.
* \param key Where should be a value from data
*/
QString extractServerErrorStringValue( const QByteArray &data, const QString &key );
/**
* Extracts value of an error json. If its not json or value cannot be parsed, QVariant() is return;
* \param data Data received from mergin server on a request failed.
* \param key Where should be a value from data
Expand Down

1 comment on commit 67a2774

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.09.455111 just submitted!

Please sign in to comment.