[PATCH keyboard] Removing unused SetKbdRepeat

Alexandr Shadchin alexandr.shadchin at gmail.com
Wed Jan 5 23:59:19 PST 2011


Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin at gmail.com>
---
 src/bsd_kbd.c   |   20 --------------------
 src/hurd_kbd.c  |    7 -------
 src/sun_kbd.c   |    8 --------
 src/xf86OSKbd.h |    2 --
 4 files changed, 0 insertions(+), 37 deletions(-)

diff --git a/src/bsd_kbd.c b/src/bsd_kbd.c
index ebf16c2..d0cedcd 100644
--- a/src/bsd_kbd.c
+++ b/src/bsd_kbd.c
@@ -138,25 +138,6 @@ GetKbdLeds(InputInfoPtr pInfo)
     return(leds);
 }
 
-static void
-SetKbdRepeat(InputInfoPtr pInfo, char rad)
-{
-    KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
-    switch (pKbd->consType) {
-
-#ifdef PCCONS_SUPPORT
-	case PCCONS:
-		break;
-#endif
-#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
-	case SYSCONS:
-	case PCVT:
-		ioctl(pInfo->fd, KDSETRAD, rad);
-		break;
-#endif
-    }
-}
-
 static int
 KbdOn(InputInfoPtr pInfo, int what)
 {
@@ -458,7 +439,6 @@ xf86OSKbdPreInit(InputInfoPtr pInfo)
     pKbd->Bell		= SoundBell;
     pKbd->SetLeds	= SetKbdLeds;
     pKbd->GetLeds	= GetKbdLeds;
-    pKbd->SetKbdRepeat	= SetKbdRepeat;
     pKbd->KbdGetMapping	= KbdGetMapping;
 
     pKbd->RemapScanCode = NULL;
diff --git a/src/hurd_kbd.c b/src/hurd_kbd.c
index 27746da..dde5fbb 100644
--- a/src/hurd_kbd.c
+++ b/src/hurd_kbd.c
@@ -95,12 +95,6 @@ GetKbdLeds(InputInfoPtr pInfo)
     return 0;
 }
 
-static void 
-SetKbdRepeat(InputInfoPtr pInfo, char rad)
-{
-    return;
-}
-
 static void
 KbdGetMapping(InputInfoPtr pInfo, KeySymsPtr pKeySyms, CARD8 *pModMap)
 {
@@ -161,7 +155,6 @@ xf86OSKbdPreInit(InputInfoPtr pInfo)
     pKbd->Bell          = SoundKbdBell;
     pKbd->SetLeds       = SetKbdLeds;
     pKbd->GetLeds       = GetKbdLeds;
-    pKbd->SetKbdRepeat  = SetKbdRepeat;
     pKbd->KbdGetMapping = KbdGetMapping;
     pKbd->RemapScanCode = ATScancode;
     pKbd->OpenKeyboard  = OpenKeyboard;
diff --git a/src/sun_kbd.c b/src/sun_kbd.c
index 86b8f97..80ff8d0 100644
--- a/src/sun_kbd.c
+++ b/src/sun_kbd.c
@@ -409,13 +409,6 @@ GetKbdLeds(InputInfoPtr pInfo)
     return leds;
 }
 
-/* ARGSUSED0 */
-static void
-SetKbdRepeat(InputInfoPtr pInfo, char rad)
-{
-    /* Nothing to do */
-}
-
 static void
 CloseKeyboard(InputInfoPtr pInfo)
 {
@@ -531,7 +524,6 @@ xf86OSKbdPreInit(InputInfoPtr pInfo)
     pKbd->Bell          = SoundKbdBell;
     pKbd->SetLeds       = SetKbdLeds;
     pKbd->GetLeds       = GetKbdLeds;
-    pKbd->SetKbdRepeat  = SetKbdRepeat;
     pKbd->KbdGetMapping = KbdGetMapping;
 
     pKbd->RemapScanCode = NULL;
diff --git a/src/xf86OSKbd.h b/src/xf86OSKbd.h
index 0e9fa4d..561bf89 100644
--- a/src/xf86OSKbd.h
+++ b/src/xf86OSKbd.h
@@ -40,7 +40,6 @@ typedef	void	(*BellProc)(InputInfoPtr pInfo,
                             int loudness, int pitch, int duration);
 typedef	void	(*SetLedsProc)(InputInfoPtr pInfo, int leds);
 typedef	int	(*GetLedsProc)(InputInfoPtr pInfo);
-typedef	void	(*SetKbdRepeatProc)(InputInfoPtr pInfo, char rad);
 typedef	void	(*KbdGetMappingProc)(InputInfoPtr pInfo,
                                      KeySymsPtr pKeySyms, CARD8* pModMap);
 typedef	int	(*RemapScanCodeProc)(InputInfoPtr pInfo, int *scanCode);
@@ -60,7 +59,6 @@ typedef struct {
     BellProc		Bell;
     SetLedsProc		SetLeds;
     GetLedsProc		GetLeds;
-    SetKbdRepeatProc	SetKbdRepeat;
     KbdGetMappingProc	KbdGetMapping;
     RemapScanCodeProc	RemapScanCode;
 
-- 
1.7.3.2



More information about the xorg-devel mailing list