1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-16 14:01:58 +02:00

Remove obsolete JSAccount::name() (it's in ScriptAccount already)

This commit is contained in:
Dominik Schmidt 2015-01-13 17:26:56 +01:00
parent 61ad535909
commit 6c63b177f9
2 changed files with 0 additions and 11 deletions

View File

@ -171,13 +171,6 @@ JSAccount::syncInvoke( const scriptobject_ptr& scriptObject, const QString& meth
}
const QString
JSAccount::name() const
{
return m_name;
}
QVariant
JSAccount::evaluateJavaScriptInternal( const QString& scriptSource )
{

View File

@ -41,14 +41,11 @@ class DLLEXPORT JSAccount : public ScriptAccount
Q_OBJECT
public:
// HACK: needs refactoring
JSAccount( const QString& name );
void startJob( ScriptJob* scriptJob ) override;
const QVariant syncInvoke( const scriptobject_ptr& scriptObject, const QString& methodName, const QVariantMap& arguments ) override;
const QString name() const;
/**
* Evaluate JavaScript on the WebKit thread
*/
@ -81,7 +78,6 @@ private:
QVariant evaluateJavaScriptInternal( const QString& scriptSource );
std::unique_ptr<ScriptEngine> m_engine;
QString m_name;
// HACK: the order of initializen is flawed, tbr
JSResolver* m_resolver;
};