History

Remove dead code.

Howard Stearns committed 11 years ago

Commit 62941c01 parent ea834609 files · +12 −225Browse files

Showing the changes to interface/src/Application.cpp (1 of 9 files). Show all

Unified · Split

interface/src/Application.cpp+3−24
@@ -3896,23 +3896,12 @@ bool Application::askToSetAvatarUrl(const QString& url) { · 3895 unmodified lines
38963896 QMessageBox msgBox;
38973897 msgBox.setIcon(QMessageBox::Question);
38983898 msgBox.setWindowTitle("Set Avatar");
3899− QPushButton* headButton = NULL;
3900− QPushButton* bodyButton = NULL;
39013899 QPushButton* bodyAndHeadButton = NULL;
39023900
39033901 QString modelName = fstMapping["name"].toString();
39043902 QString message;
39053903 QString typeInfo;
39063904 switch (modelType) {
3907− case FSTReader::HEAD_MODEL:
3908− message = QString("Would you like to use '") + modelName + QString("' for your avatar head?");
3909− headButton = msgBox.addButton(tr("Yes"), QMessageBox::ActionRole);
3910− break;
3911−
3912− case FSTReader::BODY_ONLY_MODEL:
3913− message = QString("Would you like to use '") + modelName + QString("' for your avatar body?");
3914− bodyButton = msgBox.addButton(tr("Yes"), QMessageBox::ActionRole);
3915− break;
39163905
39173906 case FSTReader::HEAD_AND_BODY_MODEL:
39183907 message = QString("Would you like to use '") + modelName + QString("' for your avatar?");
@@ -3920,10 +3909,7 @@ bool Application::askToSetAvatarUrl(const QString& url) { · 1 unmodified line
39203909 break;
39213910
39223911 default:
3923− message = QString("Would you like to use '") + modelName + QString("' for some part of your avatar head?");
3924− headButton = msgBox.addButton(tr("Use for Head"), QMessageBox::ActionRole);
3925− bodyButton = msgBox.addButton(tr("Use for Body"), QMessageBox::ActionRole);
3926− bodyAndHeadButton = msgBox.addButton(tr("Use for Body and Head"), QMessageBox::ActionRole);
3912+ message = QString(modelName + QString("Does not support a head and body as required."));
39273913 break;
39283914 }
39293915
@@ -3932,14 +3918,7 @@ bool Application::askToSetAvatarUrl(const QString& url) { · 2 unmodified lines
39323918
39333919 msgBox.exec();
39343920
3935− if (msgBox.clickedButton() == headButton) {
3936− _myAvatar->useHeadURL(url, modelName);
3937− emit headURLChanged(url, modelName);
3938− } else if (msgBox.clickedButton() == bodyButton) {
3939− _myAvatar->useBodyURL(url, modelName);
3940− emit bodyURLChanged(url, modelName);
3941− } else if (msgBox.clickedButton() == bodyAndHeadButton) {
3942− _myAvatar->useFullAvatarURL(url, modelName);
3921+ if (msgBox.clickedButton() == bodyAndHeadButton) {
39433922 emit fullAvatarURLChanged(url, modelName);
39443923 } else {
39453924 qCDebug(interfaceapp) << "Declined to use the avatar: " << url;
@@ -4426,7 +4405,7 @@ void Application::checkSkeleton() { · 480 unmodified lines
44264405 msgBox.setIcon(QMessageBox::Warning);
44274406 msgBox.exec();
44284407
4429− _myAvatar->useBodyURL(DEFAULT_BODY_MODEL_URL, "Default");
4408+ _myAvatar->useFullAvatarURL(DEFAULT_FULL_AVATAR_MODEL_URL, DEFAULT_FULL_AVATAR_MODEL_NAME);
44304409 } else {
44314410 _physicsEngine.setCharacterController(_myAvatar->getCharacterController());
44324411 }