Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: Source/modules/gamepad/GamepadList.cpp

Issue 195993007: Factor out GamepadCommon base class from Gamepad and WebKitGamepad (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tweak Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/gamepad/GamepadList.cpp
diff --git a/Source/modules/gamepad/GamepadList.cpp b/Source/modules/gamepad/GamepadList.cpp
index cc29a73dbbddb90c0752ee0f7d3cb8edc4f7e3c5..46c2a4640dc723f857cbae6c54912a044f5bd90e 100644
--- a/Source/modules/gamepad/GamepadList.cpp
+++ b/Source/modules/gamepad/GamepadList.cpp
@@ -28,10 +28,6 @@
namespace WebCore {
-GamepadList::~GamepadList()
-{
-}
-
void GamepadList::set(unsigned index, PassRefPtrWillBeRawPtr<Gamepad> gamepad)
{
if (index >= blink::WebGamepads::itemsLengthCap)
@@ -39,11 +35,6 @@ void GamepadList::set(unsigned index, PassRefPtrWillBeRawPtr<Gamepad> gamepad)
m_items[index] = gamepad;
}
-unsigned GamepadList::length() const
-{
- return blink::WebGamepads::itemsLengthCap;
-}
-
Gamepad* GamepadList::item(unsigned index)
{
return index < length() ? m_items[index].get() : 0;

Powered by Google App Engine
This is Rietveld 408576698