From 3520285079d161657808f5fc6fca39994f111a7d Mon Sep 17 00:00:00 2001 From: Alexander Ivash Date: Thu, 17 May 2018 02:22:01 +0300 Subject: [PATCH] remove debug code --- interface/resources/qml/hifi/AvatarApp.qml | 32 ---------------------- 1 file changed, 32 deletions(-) diff --git a/interface/resources/qml/hifi/AvatarApp.qml b/interface/resources/qml/hifi/AvatarApp.qml index 6f6beeae99..d0869b5337 100644 --- a/interface/resources/qml/hifi/AvatarApp.qml +++ b/interface/resources/qml/hifi/AvatarApp.qml @@ -419,39 +419,7 @@ Rectangle { MouseArea { anchors.fill: parent - - // debug only - acceptedButtons: Qt.LeftButton | Qt.RightButton - property int debug_newAvatarIndex: 0 - onClicked: { - if(mouse.button == Qt.RightButton) { - - for(var i = 0; i < 3; ++i) - { - console.debug('adding avatar...'); - - var avatar = { - 'url': Qt.resolvedUrl('../../images/samples/hifi-mp-e76946cc-c272-4adf-9bb6-02cde0a4b57d-2.png'), - 'name': 'Lexi' + (++debug_newAvatarIndex), - 'wearables': [] - }; - - allAvatars.append(avatar) - - if(pageOfAvatars.hasGetAvatars()) - pageOfAvatars.removeGetAvatars(); - - if(pageOfAvatars.count !== view.itemsPerPage) - pageOfAvatars.append(avatar); - - if(pageOfAvatars.count !== view.itemsPerPage) - pageOfAvatars.appendGetAvatars(); - } - - return; - } - popup.showGetWearables(function() { emitSendToScript({'method' : 'navigate', 'url' : 'hifi://AvatarIsland'}) }, function(link) {