OSDN Git Service

Remove unused CXkeymacsDll::GetMickey.
authorKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Sat, 28 May 2011 16:47:37 +0000 (01:47 +0900)
committerKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Sat, 11 Jun 2011 03:23:09 +0000 (12:23 +0900)
xkeymacsdll/xkeymacsdll.cpp
xkeymacsdll/xkeymacsdll.h

index 24ff71d..9760904 100644 (file)
@@ -1291,33 +1291,6 @@ void CXkeymacsDll::IncreaseKillRingIndex(int nKillRing)
        m_nKillRing += nKillRing;\r
 }\r
 \r
-// nobody use\r
-int CXkeymacsDll::GetMickey(int nDifferential, int nThreshold1, int nThreshold2, int nAcceleration, int nSpeed)\r
-{\r
-       nDifferential = nDifferential * 10 / nSpeed;\r
-\r
-       switch (nAcceleration) {\r
-       case 2:\r
-               if (nThreshold2 < fabs((double)(nDifferential / 4))) {\r
-                       nDifferential /= 4;\r
-                       break;\r
-               }\r
-               // Do NOT write break; here.\r
-       case 1:\r
-               if (nThreshold1 < fabs((double)(nDifferential / 2))) {\r
-                       nDifferential /= 2;\r
-               }\r
-               break;\r
-       case 0:\r
-               break;\r
-       default:\r
-               ASSERT(0);\r
-               break;\r
-       }\r
-\r
-       return nDifferential;\r
-}\r
-\r
 void CXkeymacsDll::SetSettingStyle(int nApplicationID, int nSettingStyle)\r
 {\r
        m_Config.nSettingStyle[nApplicationID] = nSettingStyle;\r
index bd3d7a3..e3cfcaa 100644 (file)
@@ -155,7 +155,6 @@ private:
        static int m_nOriginal[MAX_COMMAND_TYPE][MAX_KEY];\r
        static int m_nKillRing;\r
        static CList<CClipboardSnap *, CClipboardSnap *> m_oKillRing;\r
-       static int GetMickey(int nDifferential, int nThreshold1, int nThreshold2, int nAcceleration, int nSpeed);\r
        static BOOL m_bHook;\r
        static BOOL m_bRightShift;\r
        static BOOL m_bRightAlt;\r