* frame.h (FRAME_MOUSE_UPDATE):
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 1 Aug 2013 14:54:29 +0000 (18:54 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Thu, 1 Aug 2013 14:54:29 +0000 (18:54 +0400)
* nsterm.m (ns_frame_up_to_date): Omit redundant check
whether hlinfo->mouse_face_mouse_frame is non-NULL.

src/ChangeLog
src/frame.h
src/nsterm.m

index 2e327e5..95ece0f 100644 (file)
@@ -1,3 +1,9 @@
+2013-08-01  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * frame.h (FRAME_MOUSE_UPDATE):
+       * nsterm.m (ns_frame_up_to_date): Omit redundant check
+       whether hlinfo->mouse_face_mouse_frame is non-NULL.
+
 2013-08-01  Dmitry Antipov  <dmantipov@yandex.ru>
 
        Avoid redundant Lisp_Object <-> struct frame conversions in font API.
index c4c5ec2..723a943 100644 (file)
@@ -929,10 +929,9 @@ typedef struct frame *FRAME_PTR;
     if (frame == hlinfo->mouse_face_mouse_frame)               \
       {                                                                \
        block_input ();                                         \
-       if (hlinfo->mouse_face_mouse_frame)                     \
-         note_mouse_highlight (hlinfo->mouse_face_mouse_frame, \
-                               hlinfo->mouse_face_mouse_x,     \
-                               hlinfo->mouse_face_mouse_y);    \
+       note_mouse_highlight (hlinfo->mouse_face_mouse_frame,   \
+                             hlinfo->mouse_face_mouse_x,       \
+                             hlinfo->mouse_face_mouse_y);      \
        unblock_input ();                                       \
       }                                                                \
   } while (0)
index 7126ef5..59aa7f3 100644 (file)
@@ -1883,10 +1883,9 @@ ns_frame_up_to_date (struct frame *f)
        {
          block_input ();
          ns_update_begin(f);
-         if (hlinfo->mouse_face_mouse_frame)
-           note_mouse_highlight (hlinfo->mouse_face_mouse_frame,
-                                 hlinfo->mouse_face_mouse_x,
-                                 hlinfo->mouse_face_mouse_y);
+         note_mouse_highlight (hlinfo->mouse_face_mouse_frame,
+                               hlinfo->mouse_face_mouse_x,
+                               hlinfo->mouse_face_mouse_y);
          ns_update_end(f);
          unblock_input ();
        }