소스 검색

linux: remove d-bus lazy init dead code

Lazy init in X11/Wayland is dead code since dbdbae4
Cameron Gutman 4 년 전
부모
커밋
b08b1bde66
4개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 4
      src/video/wayland/SDL_waylandvideo.c
  2. 0 1
      src/video/wayland/SDL_waylandvideo.h
  3. 0 4
      src/video/x11/SDL_x11video.c
  4. 0 1
      src/video/x11/SDL_x11video.h

+ 0 - 4
src/video/wayland/SDL_waylandvideo.c

@@ -578,10 +578,6 @@ Wayland_VideoInit(_THIS)
 
     Wayland_InitKeyboard(_this);
 
-#if SDL_USE_LIBDBUS
-    SDL_DBus_Init();
-#endif
-
     return 0;
 }
 

+ 0 - 1
src/video/wayland/SDL_waylandvideo.h

@@ -29,7 +29,6 @@
 #include "wayland-util.h"
 
 #include "../SDL_sysvideo.h"
-#include "../../core/linux/SDL_dbus.h"
 #include "../../core/linux/SDL_ime.h"
 
 struct xkb_context;

+ 0 - 4
src/video/x11/SDL_x11video.c

@@ -453,10 +453,6 @@ X11_VideoInit(_THIS)
 
     X11_InitTouch(_this);
 
-#if SDL_USE_LIBDBUS
-    SDL_DBus_Init();
-#endif
-
     return 0;
 }
 

+ 0 - 1
src/video/x11/SDL_x11video.h

@@ -56,7 +56,6 @@
 #include <X11/extensions/xf86vmode.h>
 #endif
 
-#include "../../core/linux/SDL_dbus.h"
 #include "../../core/linux/SDL_ime.h"
 
 #include "SDL_x11dyn.h"