mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Remove unnecessary duplicate function
This commit is contained in:
parent
baf88ab508
commit
9a9d190918
2 changed files with 3 additions and 4 deletions
|
@ -15,6 +15,6 @@ AnimationCacheScriptingInterface::AnimationCacheScriptingInterface() :
|
|||
ScriptableResourceCache::ScriptableResourceCache(DependencyManager::get<AnimationCache>())
|
||||
{ }
|
||||
|
||||
AnimationPointer AnimationCacheScriptingInterface::getAnimation(const QUrl& url) {
|
||||
return DependencyManager::get<AnimationCache>()->getAnimation(url);
|
||||
AnimationPointer AnimationCacheScriptingInterface::getAnimation(const QString& url) {
|
||||
return DependencyManager::get<AnimationCache>()->getAnimation(QUrl(url));
|
||||
}
|
||||
|
|
|
@ -52,8 +52,7 @@ public:
|
|||
* @param {string} url - URL to load.
|
||||
* @returns {AnimationObject} animation
|
||||
*/
|
||||
Q_INVOKABLE AnimationPointer getAnimation(const QString& url) { return getAnimation(QUrl(url)); }
|
||||
Q_INVOKABLE AnimationPointer getAnimation(const QUrl& url);
|
||||
Q_INVOKABLE AnimationPointer getAnimation(const QString& url);
|
||||
};
|
||||
|
||||
#endif // hifi_AnimationCacheScriptingInterface_h
|
||||
|
|
Loading…
Reference in a new issue