kinit: remove unused LAUNCHER_TERMINATE_KDE command

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-05-25 09:23:20 +03:00
parent 875b319497
commit f1eeb96440
3 changed files with 9 additions and 23 deletions

View file

@ -1141,15 +1141,6 @@ static bool handle_launcher_request(int sock, const char *who)
}
setenv( env_name, env_value, 1);
}
else if (request_header.cmd == LAUNCHER_TERMINATE_KDE)
{
#ifndef NDEBUG
fprintf(stderr,"kdeinit4: terminate KDE.\n");
#endif
#ifdef Q_WS_X11
kdeinit_xio_errhandler( 0L );
#endif
}
else if (request_header.cmd == LAUNCHER_TERMINATE_KDEINIT)
{
#ifndef NDEBUG

View file

@ -33,8 +33,6 @@ const char* commandToString(int command)
return "LAUNCHER_OK";
case LAUNCHER_ERROR:
return "LAUNCHER_ERROR";
case LAUNCHER_TERMINATE_KDE:
return "LAUNCHER_TERMINATE_KDE";
case LAUNCHER_TERMINATE_KDEINIT:
return "LAUNCHER_TERMINATE_KDEINIT";
case LAUNCHER_DEBUG_WAIT:

View file

@ -28,7 +28,6 @@ typedef struct
/* Launcher commands: */
#define LAUNCHER_EXEC 1
/*
* LAUNCHER_EXEC
*
@ -38,9 +37,8 @@ typedef struct
* long argc: number of arguments
* char *args: arguments, argument 0 is the program to start.
*/
#define LAUNCHER_EXEC 1
#define LAUNCHER_SETENV 2
/*
* LAUNCHER_SETENV
*
@ -51,8 +49,8 @@ typedef struct
* char *env_name;
* char *env_value;
*/
#define LAUNCHER_SETENV 2
#define LAUNCHER_CHILD_DIED 3
/*
* LAUNCHER_CHILD_DIED
*
@ -61,8 +59,8 @@ typedef struct
* long pid;
* long exit_code;
*/
#define LAUNCHER_CHILD_DIED 3
#define LAUNCHER_OK 4
/*
* LAUNCHER_OK
*
@ -70,8 +68,8 @@ typedef struct
*
* long pid;
*/
#define LAUNCHER_OK 4
#define LAUNCHER_ERROR 5
/*
* LAUNCHER_ERROR
*
@ -79,17 +77,15 @@ typedef struct
*
* char *error msg (utf8)
*/
#define LAUNCHER_TERMINATE_KDE 6
#define LAUNCHER_ERROR 5
/*
* LAUNCHER_TERMINATE_KDEINIT
*
* Suicide is painless
*/
#define LAUNCHER_TERMINATE_KDEINIT 7
#define LAUNCHER_TERMINATE_KDEINIT 6
#define LAUNCHER_DEBUG_WAIT 8
/*
* LAUNCHER_DEBUG_WAIT
*
@ -98,8 +94,8 @@ typedef struct
*
* (Used for debugging io-slaves)
*/
#define LAUNCHER_DEBUG_WAIT 7
#define LAUNCHER_EXT_EXEC 9
/*
* LAUNCHER_EXT_EXEC
*
@ -118,8 +114,8 @@ typedef struct
* "" ( empty string ) is the default
*
*/
#define LAUNCHER_EXT_EXEC 8
#define LAUNCHER_EXEC_NEW 10
/*
* LAUNCHER_EXEC_NEW
*
@ -136,6 +132,7 @@ typedef struct
* this process binary is found in order to avoid
* infinite loop by binary->kdeinit_wrapper link in $PATH
*/
#define LAUNCHER_EXEC_NEW 9
const char* commandToString(int command);