]> git.eshelyaron.com Git - emacs.git/commitdiff
removed unused function
authorJoakim Verona <joakim@verona.se>
Thu, 12 Feb 2015 21:50:25 +0000 (22:50 +0100)
committerJoakim Verona <joakim@verona.se>
Thu, 12 Feb 2015 21:50:25 +0000 (22:50 +0100)
lisp/xwidget.el
src/xwidget.c

index 286b96a0bde33f36ff9064bab7b7ee9ff8d5f42a..6405286fb173d71310f2a8cc77d58189cccb0c8b 100644 (file)
@@ -46,36 +46,6 @@ Optional argument ARGS usage depends on the xwidget."
     (if (equal 'xwidget (car disp)) xw)))
 
 
-;; (defun xwidget-socket-handler ()
-;;   "Create plug for socket.  TODO."
-;;   (interactive)
-;;   (message "socket handler xwidget %S" last-input-event)
-;;   (let*
-;;       ((xwidget-event-type (nth 2 last-input-event))
-;;        (xwidget-id (nth 1 last-input-event)))
-;;     (cond ( (eq xwidget-event-type 'xembed-ready)
-;;             (let*
-;;                 ((xembed-id (nth 3 last-input-event)))
-;;               (message "xembed ready  event: %S xw-id:%s" xembed-id xwidget-id)
-;;               ;;TODO fetch process data from the xwidget. create it, store process info
-;;               ;;will start emacs/uzbl in a xembed socket when its ready
-;;               ;; (cond
-;;               ;;  ((eq 3 xwidget-id)
-;;               ;;   (start-process "xembed" "*xembed*" (format "%ssrc/emacs" default-directory) "-q" "--parent-id" (number-to-string xembed-id) ) )
-;;               ;;  ((eq 5 xwidget-id)
-;;               ;;   (start-process "xembed2" "*xembed2*" "uzbl-core"  "-s" (number-to-string xembed-id)  "http://www.fsf.org" )  )
-;;               )))))
-
-(defun xwidget-display (xwidget)
-  "Force XWIDGET to be displayed to create a xwidget_view.
-Return the window displaying XWIDGET."
-  (let* ((buffer (xwidget-buffer xwidget))
-         (window (display-buffer buffer))
-         (frame (window-frame window)))
-    (set-frame-visible frame t)
-    (redisplay t)
-    window))
-
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;; webkit support
index bde7a955577bea24b8ee01dc62436d27fc343049..fb1a98786a71ff6ef77bf51ec37636410385160b 100644 (file)
@@ -1025,18 +1025,6 @@ DEFUN ("xwidget-view-lookup",
   return Qnil;
 }
 
-DEFUN ("set-frame-visible",
-       Fset_frame_visible, Sset_frame_visible,
-       2, 2, 0, doc:   /* HACKY */
-       )
-  (Lisp_Object frame, Lisp_Object flag)
-{
-  CHECK_FRAME (frame);
-  struct frame *f = XFRAME (frame);
-  SET_FRAME_VISIBLE (f, !NILP (flag));
-  return flag;
-}
-
 DEFUN ("xwidget-plist",
        Fxwidget_plist, Sxwidget_plist,
        1, 1, 0, doc:   /* Return the plist of XWIDGET.  */
@@ -1114,7 +1102,6 @@ syms_of_xwidget (void)
   defsubr (&Sxwidget_view_lookup);
   defsubr (&Sxwidget_query_on_exit_flag);
   defsubr (&Sset_xwidget_query_on_exit_flag);
-  defsubr (&Sset_frame_visible);
 
 #ifdef HAVE_WEBKIT_OSR
   defsubr (&Sxwidget_webkit_goto_uri);