uterm: video: remove drm_get_id() helper
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 7 Jan 2013 12:37:17 +0000 (13:37 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 7 Jan 2013 12:37:17 +0000 (13:37 +0100)
This helper is no longer used so remove it.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_video_internal.h

index bbea35b..81f5b83 100644 (file)
@@ -415,31 +415,6 @@ static inline int video_do_use(struct uterm_video *video)
 
 #if defined(BUILD_ENABLE_VIDEO_DRM) || defined(BUILD_ENABLE_VIDEO_DUMB)
 
-static inline char *video_drm_get_id(int fd)
-{
-       drmSetVersion v = {
-               .drm_di_major = 1,
-               .drm_di_minor = 4,
-               .drm_dd_major = -1,
-               .drm_dd_minor = -1,
-       };
-
-       if (fd < 0)
-               return NULL;
-
-       drmSetMaster(fd);
-       drmSetInterfaceVersion(fd, &v);
-       return drmGetBusid(fd);
-}
-
-static inline void video_drm_free_id(char *id)
-{
-       if (!id)
-               return;
-
-       drmFreeBusid(id);
-}
-
 static inline char *video_drm_get_name(int fd)
 {
        drmVersionPtr v;
@@ -477,15 +452,6 @@ static inline bool video_drm_available(void)
 
 #else
 
-static inline char *video_drm_get_id(int fd)
-{
-       return NULL;
-}
-
-static inline void video_drm_free_id(char *id)
-{
-}
-
 static inline char *video_drm_get_name(int fd)
 {
        return NULL;