7006052: awt_InputMethod.c cleanup is needed
authornaoto
Fri, 31 May 2013 11:20:51 -0700
changeset 17923 8e6963470d40
parent 17922 d56eec572de5
child 17924 c4e51dc609b1
7006052: awt_InputMethod.c cleanup is needed Reviewed-by: anthony
jdk/src/solaris/native/sun/awt/awt_InputMethod.c
--- a/jdk/src/solaris/native/sun/awt/awt_InputMethod.c	Fri May 31 12:17:30 2013 +0100
+++ b/jdk/src/solaris/native/sun/awt/awt_InputMethod.c	Fri May 31 11:20:51 2013 -0700
@@ -185,7 +185,6 @@
 );
 #endif
 
-#ifdef XAWT_HACK
 /*
  * This function is stolen from /src/solaris/hpi/src/system_md.c
  * It is used in setting the time in Java-level InputEvents
@@ -197,7 +196,6 @@
     gettimeofday(&t, NULL);
     return ((jlong)t.tv_sec) * 1000 + (jlong)(t.tv_usec/1000);
 }
-#endif /* XAWT_HACK */
 
 /*
  * Converts the wchar_t string to a multi-byte string calling wcstombs(). A
@@ -546,11 +544,7 @@
                                  "dispatchCommittedText",
                                  "(Ljava/lang/String;J)V",
                                  javastr,
-#ifndef XAWT_HACK
-                                 awt_util_nowMillisUTC_offset(event->time));
-#else
                                  event->time);
-#endif
         }
         break;