Merge lp:~mc-return/unity/unity.merge-remove-unused-variables into lp:unity

Proposed by MC Return on 2012-09-05
Status: Merged
Approved by: Brandon Schaefer on 2012-09-06
Approved revision: no longer in the source branch.
Merged at revision: 2666
Proposed branch: lp:~mc-return/unity/unity.merge-remove-unused-variables
Merge into: lp:unity
Diff against target: 33 lines (+4/-4)
2 files modified
manual-tests/Hud.txt (+2/-2)
plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp (+2/-2)
To merge this branch: bzr merge lp:~mc-return/unity/unity.merge-remove-unused-variables
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) 2012-09-05 Approve on 2012-09-06
jenkins continuous-integration Pending
Review via email: mp+122940@code.launchpad.net

Commit Message

Removed the variables 'oldPrev' and 'oldNext' which got assigned the value NULL, but then were never used.

Description of the Change

Removes the variables 'oldPrev' and 'oldNext' which got assigned the value NULL, but then were never used.

To post a comment you must log in.
MC Return (mc-return) wrote :

Ups, the change to the manual-test was not really intentional...

2658. By Nick Dedekind on 2012-09-06

Close preview when dash is hidden. (LP#1045298). Fixes: https://bugs.launchpad.net/bugs/1045298. Approved by Nick Dedekind, Omer Akram, Gord Allott.

2659. By Brandon Schaefer on 2012-09-06

The xim tests will now skip if no XMODIFIERS env var is set.. Approved by Christopher Lee, Thomi Richards.

2660. By Marco Trevisan (Treviño) on 2012-09-06

LauncherModel: rewrite the Reordering functions to keep the icon priority deltas

The priority of the icons added to the model was reset every time the model
was reordered; we should otherwise keep the priority deltas between icons
so that we can safely set them without be worried that a reorder would completely
reset them.
Also add IconIndex method to get the positio of a given icon.. Fixes: https://bugs.launchpad.net/bugs/761155. Approved by Andrea Azzarone.

2661. By Michal Hruby on 2012-09-06

Make sure we can pass extra hints when activating preview actions. Fixes: https://bugs.launchpad.net/bugs/1046352. Approved by Pawel Stolowski, Nick Dedekind.

Brandon Schaefer (brandontschaefer) wrote :

Changes look good. +1

review: Approve
2662. By Renato Araujo Oliveira Filho on 2012-09-06

UnityWindow: scale window code improved

* Fixed code style.
* Moved function "GetWindowName" from UnityWindow to WindowManager.
* Used glib::Object auto pointer instead of "c" pointer;. Fixes: https://bugs.launchpad.net/bugs/1033935, https://bugs.launchpad.net/bugs/1046125. Approved by Marco Trevisan (Treviño).

2663. By Brandon Schaefer on 2012-09-06

The mouse will now cause the HUD buttons to change selection.. Fixes: https://bugs.launchpad.net/bugs/1042692. Approved by Tim Penhey, Gord Allott.

2664. By MC Return on 2012-09-06

"Alt+Space" shortcut to reveal the window menu is not hardcoded, but a Compiz key option
" (Hold)" should also be translated
Made all Compiz plug-in names and all Compiz plug-in option names in unityshell.cpp static constants. Approved by Sam Spilsbury.

2665. By Didier Roche on 2012-09-06

remove unity --reset, it's not anymore really needed now that we are in
stable days of unity and we moved to gsettings. Approved by Michal Hruby.

2666. By MC Return on 2012-09-06

Removed the variables 'oldPrev' and 'oldNext' which got assigned the value NULL, but then were never used.. Approved by Brandon Schaefer.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'manual-tests/Hud.txt'
2--- manual-tests/Hud.txt 2012-08-23 23:20:55 +0000
3+++ manual-tests/Hud.txt 2012-09-05 20:45:21 +0000
4@@ -1,6 +1,6 @@
5 Alt+Enter Crash
6 ---------------
7-Tests that Alt+Enter does not cause unity to crash (LP: #960957)
8+Test that Alt+Enter does not cause Compiz/Unity to crash (LP: #960957)
9
10 Setup:
11
12@@ -11,4 +11,4 @@
13 Nothing happens
14
15 Wrong Result:
16- Unity/compiz crashes
17+ Unity/Compiz crashes
18
19=== modified file 'plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp'
20--- plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp 2012-07-30 16:35:18 +0000
21+++ plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp 2012-09-05 20:45:21 +0000
22@@ -223,9 +223,9 @@
23 void
24 UnityMTGrabHandlesScreen::handleEvent(XEvent* event)
25 {
26- CompWindow* w, *oldPrev, *oldNext;
27+ CompWindow* w;
28
29- w = oldPrev = oldNext = NULL;
30+ w = NULL;
31
32 switch (event->type)
33 {