@@ -13,7 +13,6 @@ import { ElementMixin } from '../mixins/element-mixin.js';
1313import { GestureEventListeners } from '../mixins/gesture-event-listeners.js' ;
1414import { DirMixin } from '../mixins/dir-mixin.js' ;
1515import { dedupingMixin } from '../utils/mixin.js' ;
16- import { importHref as importHref$0 } from '../utils/import-href.js' ;
1716import '../utils/render-status.js' ;
1817import '../utils/unresolved.js' ;
1918import { dom as dom$0 , matchesSelector } from './polymer.dom.js' ;
@@ -798,29 +797,6 @@ export const LegacyElementMixin = dedupingMixin((base) => {
798797 return elt ;
799798 }
800799
801- /**
802- * Convenience method for importing an HTML document imperatively.
803- *
804- * This method creates a new `<link rel="import">` element with
805- * the provided URL and appends it to the document to start loading.
806- * In the `onload` callback, the `import` property of the `link`
807- * element will contain the imported document contents.
808- *
809- * @param {string } href URL to document to load.
810- * @param {?function(!Event):void= } onload Callback to notify when an import successfully
811- * loaded.
812- * @param {?function(!ErrorEvent):void= } onerror Callback to notify when an import
813- * unsuccessfully loaded.
814- * @param {boolean= } optAsync True if the import should be loaded `async`.
815- * Defaults to `false`.
816- * @return {!HTMLLinkElement } The link element for the URL to be loaded.
817- */
818- importHref ( href , onload , onerror , optAsync ) { // eslint-disable-line no-unused-vars
819- let loadFn = onload ? onload . bind ( this ) : null ;
820- let errorFn = onerror ? onerror . bind ( this ) : null ;
821- return importHref$0 ( href , loadFn , errorFn , optAsync ) ;
822- }
823-
824800 /**
825801 * Polyfill for Element.prototype.matches, which is sometimes still
826802 * prefixed.
0 commit comments