Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Web Inspector: Remove unused WebInspector.CSSCompletions methods
https://bugs.webkit.org/show_bug.cgi?id=158352

Reviewed by Joseph Pecoraro.

* UserInterface/Models/CSSCompletions.js:
(WebInspector.CSSCompletions.prototype.firstStartsWith): Deleted.
(WebInspector.CSSCompletions.prototype.isLonghandPropertyName): Deleted.
(WebInspector.CSSCompletions.prototype.longhandsForShorthand): Deleted.


Canonical link: https://commits.webkit.org/176444@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
NV committed Jun 3, 2016
1 parent 70069a1 commit ef9627a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
12 changes: 12 additions & 0 deletions Source/WebInspectorUI/ChangeLog
@@ -1,3 +1,15 @@
2016-06-03 Nikita Vasilyev <nvasilyev@apple.com>

Web Inspector: Remove unused WebInspector.CSSCompletions methods
https://bugs.webkit.org/show_bug.cgi?id=158352

Reviewed by Joseph Pecoraro.

* UserInterface/Models/CSSCompletions.js:
(WebInspector.CSSCompletions.prototype.firstStartsWith): Deleted.
(WebInspector.CSSCompletions.prototype.isLonghandPropertyName): Deleted.
(WebInspector.CSSCompletions.prototype.longhandsForShorthand): Deleted.

2016-06-03 Joseph Pecoraro <pecoraro@apple.com>

Web Inspector: Update NativeFunctionParameters (FontFaceSet, HTMLSlotElement, EventTarget)
Expand Down
16 changes: 0 additions & 16 deletions Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js
Expand Up @@ -189,12 +189,6 @@ WebInspector.CSSCompletions = class CSSCompletions
return results;
}

firstStartsWith(prefix)
{
var foundIndex = this._firstIndexOfPrefix(prefix);
return (foundIndex === -1 ? "" : this._values[foundIndex]);
}

_firstIndexOfPrefix(prefix)
{
if (!this._values.length)
Expand Down Expand Up @@ -269,16 +263,6 @@ WebInspector.CSSCompletions = class CSSCompletions
return shorthand in this._longhands;
}

isLonghandPropertyName(longhand)
{
return longhand in this._shorthands;
}

longhandsForShorthand(shorthand)
{
return this._longhands[shorthand] || [];
}

shorthandsForLonghand(longhand)
{
return this._shorthands[longhand] || [];
Expand Down

0 comments on commit ef9627a

Please sign in to comment.