mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Remove useless tests
There is no point in checking
if (dock_state)
if the function would have already returned with
the check if(!dock_state) right above.
Retrived from http://yo.dan.free.fr/wmaker.phtml.en
[crmafra: wrote the commit message]
This commit is contained in:
committed by
Carlos R. Mafra
parent
570df8316d
commit
c970c94f82
@@ -1532,7 +1532,7 @@ WAppIcon *wClipRestoreState(WScreen * scr, WMPropList * clip_state)
|
|||||||
|
|
||||||
if (!clip_state)
|
if (!clip_state)
|
||||||
return icon;
|
return icon;
|
||||||
else
|
|
||||||
WMRetainPropList(clip_state);
|
WMRetainPropList(clip_state);
|
||||||
|
|
||||||
/* restore position */
|
/* restore position */
|
||||||
@@ -1587,7 +1587,6 @@ WDock *wDockRestoreState(WScreen * scr, WMPropList * dock_state, int type)
|
|||||||
if (!dock_state)
|
if (!dock_state)
|
||||||
return dock;
|
return dock;
|
||||||
|
|
||||||
if (dock_state)
|
|
||||||
WMRetainPropList(dock_state);
|
WMRetainPropList(dock_state);
|
||||||
|
|
||||||
/* restore position */
|
/* restore position */
|
||||||
@@ -1807,7 +1806,6 @@ WDock *wDockRestoreState(WScreen * scr, WMPropList * dock_state, int type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
if (dock_state)
|
|
||||||
WMReleasePropList(dock_state);
|
WMReleasePropList(dock_state);
|
||||||
|
|
||||||
return dock;
|
return dock;
|
||||||
|
|||||||
Reference in New Issue
Block a user