Quantcast

[HtmlUnit] SVN: [14402] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ html/HtmlElement.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [14402] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ html/HtmlElement.java

asashour-2
Revision: 14402
          http://sourceforge.net/p/htmlunit/code/14402
Author:   asashour
Date:     2017-05-07 09:16:58 +0000 (Sun, 07 May 2017)
Log Message:
-----------
HtmlElement: remove unused methods

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlElement.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlElement.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlElement.java 2017-05-07 09:09:21 UTC (rev 14401)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlElement.java 2017-05-07 09:16:58 UTC (rev 14402)
@@ -26,8 +26,6 @@
 import java.util.Map;
 
 import org.apache.commons.lang3.StringUtils;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 import org.w3c.dom.Attr;
 import org.w3c.dom.CDATASection;
 import org.w3c.dom.Comment;
@@ -49,7 +47,6 @@
 import com.gargoylesoftware.htmlunit.javascript.host.dom.MutationObserver;
 import com.gargoylesoftware.htmlunit.javascript.host.event.Event;
 import com.gargoylesoftware.htmlunit.javascript.host.event.Event2;
-import com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler;
 import com.gargoylesoftware.htmlunit.javascript.host.event.KeyboardEvent;
 import com.gargoylesoftware.htmlunit.javascript.host.event.KeyboardEvent2;
 import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument;
@@ -58,7 +55,6 @@
 import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement2;
 import com.gargoylesoftware.js.nashorn.internal.objects.Global;
 
-import net.sourceforge.htmlunit.corejs.javascript.BaseFunction;
 import net.sourceforge.htmlunit.corejs.javascript.Function;
 
 /**
@@ -134,8 +130,6 @@
         }
     }
 
-    private static final Log LOG = LogFactory.getLog(HtmlElement.class);
-
     /**
      * Constant indicating that a tab index value is out of bounds (less than <tt>0</tt> or greater
      * than <tt>32767</tt>).
@@ -988,32 +982,6 @@
     }
 
     /**
-     * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>
-     * Register a snippet of JavaScript code as an event handler. The JavaScript code will
-     * be wrapped inside a unique function declaration which provides one argument named
-     * "event"
-     * @param eventName Name of event such as "onclick" or "onblur", etc
-     * @param jsSnippet executable JavaScript code
-     */
-    public final void setEventHandler(final String eventName, final String jsSnippet) {
-        final BaseFunction function = new EventHandler(this, eventName, jsSnippet);
-        setEventHandler(eventName, function);
-        if (LOG.isDebugEnabled()) {
-            LOG.debug("Created event handler " + function.getFunctionName()
-                    + " for " + eventName + " on " + this);
-        }
-    }
-
-    /**
-     * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>
-     * Removes the specified event handler.
-     * @param eventName Name of the event such as "onclick" or "onblur", etc
-     */
-    public final void removeEventHandler(final String eventName) {
-        setEventHandler(eventName, (Function) null);
-    }
-
-    /**
      * Adds an HtmlAttributeChangeListener to the listener list.
      * The listener is registered for all attributes of this HtmlElement,
      * as well as descendant elements.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...