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

Unified Diff: Source/core/html/canvas/DataView.cpp

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 5 years, 10 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/core/html/canvas/DataView.h ('k') | Source/core/layout/style/AppliedTextDecoration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/html/canvas/DataView.h ('k') | Source/core/layout/style/AppliedTextDecoration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698