| Index: Source/devtools/front_end/sdk/ContentProviders.js
|
| diff --git a/Source/devtools/front_end/sdk/ContentProviders.js b/Source/devtools/front_end/sdk/ContentProviders.js
|
| index 6c44b9ca1ffea41786ce15ccea1538aa29b70fef..9abb379f09508f74386a3b3303cf165fe7084e0d 100644
|
| --- a/Source/devtools/front_end/sdk/ContentProviders.js
|
| +++ b/Source/devtools/front_end/sdk/ContentProviders.js
|
| @@ -263,61 +263,3 @@ WebInspector.CompilerSourceMappingContentProvider.prototype = {
|
| }
|
| }
|
| }
|
| -
|
| -/**
|
| - * @constructor
|
| - * @implements {WebInspector.ContentProvider}
|
| - * @param {!WebInspector.ResourceType} contentType
|
| - * @param {string} content
|
| - */
|
| -WebInspector.StaticContentProvider = function(contentType, content)
|
| -{
|
| - this._content = content;
|
| - this._contentType = contentType;
|
| -}
|
| -
|
| -WebInspector.StaticContentProvider.prototype = {
|
| - /**
|
| - * @return {string}
|
| - */
|
| - contentURL: function()
|
| - {
|
| - return "";
|
| - },
|
| -
|
| - /**
|
| - * @return {!WebInspector.ResourceType}
|
| - */
|
| - contentType: function()
|
| - {
|
| - return this._contentType;
|
| - },
|
| -
|
| - /**
|
| - * @param {function(?string)} callback
|
| - */
|
| - requestContent: function(callback)
|
| - {
|
| - callback(this._content);
|
| - },
|
| -
|
| - /**
|
| - * @param {string} query
|
| - * @param {boolean} caseSensitive
|
| - * @param {boolean} isRegex
|
| - * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} callback
|
| - */
|
| - searchInContent: function(query, caseSensitive, isRegex, callback)
|
| - {
|
| - /**
|
| - * @this {WebInspector.StaticContentProvider}
|
| - */
|
| - function performSearch()
|
| - {
|
| - callback(WebInspector.ContentProvider.performSearchInContent(this._content, query, caseSensitive, isRegex));
|
| - }
|
| -
|
| - // searchInContent should call back later.
|
| - window.setTimeout(performSearch.bind(this), 0);
|
| - }
|
| -}
|
|
|