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

Unified Diff: Source/wtf/TypedArrayBase.h

Issue 1180713004: Remove unused code from WTF TypedArrays (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/wtf/Int8Array.h ('k') | Source/wtf/Uint16Array.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/TypedArrayBase.h
diff --git a/Source/wtf/TypedArrayBase.h b/Source/wtf/TypedArrayBase.h
index 17f7b586999bde37d4f421b269fcc56df329a75d..4cc1c646d8436eb31a375e7a027e32b89f923354 100644
--- a/Source/wtf/TypedArrayBase.h
+++ b/Source/wtf/TypedArrayBase.h
@@ -75,14 +75,6 @@ public:
return TypedArrayBase<T>::data()[index];
}
- bool checkInboundData(unsigned offset, unsigned pos) const
- {
- return (offset <= m_length
- && offset + pos <= m_length
- // check overflow
- && offset + pos >= offset);
- }
-
protected:
TypedArrayBase(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
: ArrayBufferView(buffer, byteOffset)
@@ -126,22 +118,6 @@ protected:
return create<Subclass>(buffer.release(), 0, length);
}
- template <class Subclass>
- static PassRefPtr<Subclass> createUninitialized(unsigned length)
- {
- RefPtr<ArrayBuffer> buffer = ArrayBuffer::createUninitialized(length, sizeof(T));
- return create<Subclass>(buffer.release(), 0, length);
- }
-
- template <class Subclass>
- PassRefPtr<Subclass> subarrayImpl(int start, int end) const
- {
- unsigned offset, length;
- calculateOffsetAndLength(start, end, m_length, &offset, &length);
- clampOffsetAndNumElements<T>(buffer(), m_byteOffset, &offset, &length);
- return create<Subclass>(buffer(), offset, length);
- }
-
virtual void neuter() override final
{
ArrayBufferView::neuter();
« no previous file with comments | « Source/wtf/Int8Array.h ('k') | Source/wtf/Uint16Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698