kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=171b282f9fc3197ba4022b1b06f8dac0464f6d8e

commit 171b282f9fc3197ba4022b1b06f8dac0464f6d8e
Author: Kim Woelders <[email protected]>
Date:   Sun Oct 11 08:07:20 2020 +0200

    Remove unused SM_CLIENT_ID stuff
---
 src/ewins.c   |  1 -
 src/hints.h   |  5 +----
 src/session.c | 26 --------------------------
 3 files changed, 1 insertion(+), 31 deletions(-)

diff --git a/src/ewins.c b/src/ewins.c
index c40c1cb4..da46849d 100644
--- a/src/ewins.c
+++ b/src/ewins.c
@@ -164,7 +164,6 @@ EwinGetHints(EWin * ewin)
    MWM_GetHints(ewin, 0);
    ICCCM_GetInfo(ewin);                /* NB! Need group info first */
    HintsGetWindowHints(ewin);
-   SessionGetInfo(ewin);
 }
 
 static void
diff --git a/src/hints.h b/src/hints.h
index a9bde876..79e6f8c4 100644
--- a/src/hints.h
+++ b/src/hints.h
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various 
contributors
- * Copyright (C) 2004-2014 Kim Woelders
+ * Copyright (C) 2004-2020 Kim Woelders
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -175,7 +175,4 @@ int                 ICCCM_ProcessPropertyChange(EWin * ewin,
 void                MWM_GetHints(EWin * ewin, EX_Atom atom_change);
 void                MWM_SetInfo(void);
 
-/* session.c */
-void                SessionGetInfo(EWin * ewin);
-
 #endif /* _HINTS_H_ */
diff --git a/src/session.c b/src/session.c
index 83d5dd36..fcf94402 100644
--- a/src/session.c
+++ b/src/session.c
@@ -293,10 +293,6 @@ callback_shutdown_cancelled(SmcConn smc_conn, SmPointer 
client_data __UNUSED__)
    SmcSaveYourselfDone(smc_conn, False);
 }
 
-#if 0                          /* Unused */
-static EX_Atom      atom_sm_client_id;
-#endif
-
 static IceConn      ice_conn;
 
 static void
@@ -411,10 +407,6 @@ SessionInit(void)
    if (Mode.wm.window)
       return;
 
-#if 0                          /* Unused */
-   atom_sm_client_id = ex_atom_get("SM_CLIENT_ID");
-#endif
-
 #if USE_SM
    ice_init();
 #endif
@@ -427,24 +419,6 @@ SessionInit(void)
       Conf.session.cmd_halt = Estrdup("poweroff");
 }
 
-void
-SessionGetInfo(EWin * ewin __UNUSED__)
-{
-#if 0                          /* Unused */
-#if USE_SM
-   if (atom_sm_client_id == NoXID)
-      return;
-   EFREE_NULL(ewin->session_id);
-   if (ewin->icccm.client_leader != NoXID)
-      ewin->session_id =
-        ex_window_prop_string_get(ewin->icccm.client_leader,
-                                  atom_sm_client_id);
-#else
-   ewin = NULL;
-#endif /* USE_SM */
-#endif
-}
-
 #if USE_SM
 void
 SetSMID(const char *smid)

-- 


Reply via email to