Index: Source/core/html/canvas/DataView.cpp |
diff --git a/Source/core/html/canvas/DataView.cpp b/Source/core/html/canvas/DataView.cpp |
index 4bf6c0de6089af024e4c986968d438ecec380a47..fd6593a274437f118d2d7d5e959a254ae32fbff0 100644 |
--- a/Source/core/html/canvas/DataView.cpp |
+++ b/Source/core/html/canvas/DataView.cpp |
@@ -43,12 +43,6 @@ union Value { |
namespace blink { |
-PassRefPtr<DataView> DataView::create(unsigned length) |
-{ |
- RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(length, sizeof(uint8_t)); |
- return create(buffer.release(), 0, length); |
-} |
- |
PassRefPtr<DataView> DataView::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned byteLength) |
{ |
RELEASE_ASSERT(byteOffset <= buffer->byteLength()); |
@@ -155,16 +149,6 @@ void DataView::setData(unsigned byteOffset, T value, bool littleEndian, Exceptio |
memcpy(static_cast<char*>(m_baseAddress) + byteOffset, tempValue.bytes, sizeof(T)); |
} |
-int8_t DataView::getInt8(unsigned byteOffset, ExceptionState& exceptionState) |
-{ |
- return getData<int8_t>(byteOffset, false, exceptionState); |
-} |
- |
-uint8_t DataView::getUint8(unsigned byteOffset, ExceptionState& exceptionState) |
-{ |
- return getData<uint8_t>(byteOffset, false, exceptionState); |
-} |
- |
int16_t DataView::getInt16(unsigned byteOffset, bool littleEndian, ExceptionState& exceptionState) |
{ |
return getData<int16_t>(byteOffset, littleEndian, exceptionState); |
@@ -195,16 +179,6 @@ double DataView::getFloat64(unsigned byteOffset, bool littleEndian, ExceptionSta |
return getData<double>(byteOffset, littleEndian, exceptionState); |
} |
-void DataView::setInt8(unsigned byteOffset, int8_t value, ExceptionState& exceptionState) |
-{ |
- setData<int8_t>(byteOffset, value, false, exceptionState); |
-} |
- |
-void DataView::setUint8(unsigned byteOffset, uint8_t value, ExceptionState& exceptionState) |
-{ |
- setData<uint8_t>(byteOffset, value, false, exceptionState); |
-} |
- |
void DataView::setInt16(unsigned byteOffset, short value, bool littleEndian, ExceptionState& exceptionState) |
{ |
setData<int16_t>(byteOffset, value, littleEndian, exceptionState); |