From: Christophe CURIS <[email protected]>

The function did not use the argument 'dock', so remove it.

Signed-off-by: Christophe CURIS <[email protected]>
---
 src/dock.c    | 4 ++--
 src/dock.h    | 2 +-
 src/session.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/dock.c b/src/dock.c
index 0c88a32..222627f 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -2000,7 +2000,7 @@ finish:
        return dock;
 }
 
-void wDockLaunchWithState(WDock *dock, WAppIcon *btn, WSavedState *state)
+void wDockLaunchWithState(WAppIcon *btn, WSavedState *state)
 {
        if (btn && btn->command && !btn->running && !btn->launching) {
                btn->drop_launch = 0;
@@ -2034,7 +2034,7 @@ void wDockDoAutoLaunch(WDock *dock, int workspace)
                state->workspace = workspace;
                /* TODO: this is klugy and is very difficult to understand
                 * what's going on. Try to clean up */
-               wDockLaunchWithState(dock, btn, state);
+               wDockLaunchWithState(btn, state);
        }
 }
 
diff --git a/src/dock.h b/src/dock.h
index 6df8da7..ff6a533 100644
--- a/src/dock.h
+++ b/src/dock.h
@@ -90,7 +90,7 @@ void wDockFinishLaunch(WAppIcon *icon);
 void wDockTrackWindowLaunch(WDock *dock, Window window);
 WAppIcon *wDockFindIconForWindow(WDock *dock, Window window);
 void wDockDoAutoLaunch(WDock *dock, int workspace);
-void wDockLaunchWithState(WDock *dock, WAppIcon *btn, WSavedState *state);
+void wDockLaunchWithState(WAppIcon *btn, WSavedState *state);
 
 #ifdef XDND
 int wDockReceiveDNDDrop(WScreen *scr, XEvent *event);
diff --git a/src/session.c b/src/session.c
index f7f5f3f..12a0744 100644
--- a/src/session.c
+++ b/src/session.c
@@ -513,7 +513,7 @@ void wSessionRestoreState(WScreen *scr)
                }
 
                if (found) {
-                       wDockLaunchWithState(dock, btn, state);
+                       wDockLaunchWithState(btn, state);
                } else if ((pid = execCommand(scr, command)) > 0) {
                        wWindowAddSavedState(instance, class, command, pid, 
state);
                } else {
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to