on xenial help sign in
Remove unused Showable::showWithoutAnimation
commit28999818a19f7cf4ce691e44ccf842cf6877e89d authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateMon 15 Jul 2013, 12:36 (13 years ago) parent78ba9f0
2 files changed+5−17
Components/Showable.qml+5−14 Shell.qml−3
Components/Showable.qml+5−14
@@ -52,7 +52,7 @@ Item {
5252 function show() {
5353 required = true;
5454 if (created) {
55− __reallyShow(true);
55+ __reallyShow();
5656 } else {
5757 __shouldShow = true;
5858 }
@@ -60,16 +60,12 @@ Item {
6060
6161 onCreatedChanged: {
6262 if (created && __shouldShow) {
63− __reallyShow(true);
63+ __reallyShow();
6464 __shouldShow = false;
6565 }
6666 }
6767
68− function showWithoutAnimation() {
69− __reallyShow(false);
70− }
71−
72− function __reallyShow(animated) {
68+ function __reallyShow() {
7369 if (!available) {
7470 return false;
7571 }
@@ -81,13 +77,8 @@ Item {
8177 }
8278
8379 if (showAnimation != undefined) {
84− if (animated) {
85− if (!showAnimation.running) {
86− showAnimation.restart()
87− }
88− } else {
89− showAnimation.start();
90− showAnimation.complete();
80+ if (!showAnimation.running) {
81+ showAnimation.restart()
9182 }
9283 } else {
9384 visible = true;
Shell.qml−3
@@ -263,9 +263,6 @@ FocusScope {
263263 function show() {
264264 stages.show();
265265 }
266− function showWithoutAnimation() {
267− stages.showWithoutAnimation();
268− }
269266 function hide() {
270267 }
271268