Commit 299ed092 authored by yangguo@chromium.org's avatar yangguo@chromium.org

Remove deprecated Ascii-related identifiers from include/v8.h

R=dcarney@chromium.org

Review URL: https://codereview.chromium.org/665883002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24744 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 6ae42d91
...@@ -1773,7 +1773,6 @@ class V8_EXPORT String : public Name { ...@@ -1773,7 +1773,6 @@ class V8_EXPORT String : public Name {
enum Encoding { enum Encoding {
UNKNOWN_ENCODING = 0x1, UNKNOWN_ENCODING = 0x1,
TWO_BYTE_ENCODING = 0x0, TWO_BYTE_ENCODING = 0x0,
ASCII_ENCODING = 0x4, // TODO(yangguo): deprecate this.
ONE_BYTE_ENCODING = 0x4 ONE_BYTE_ENCODING = 0x4
}; };
/** /**
...@@ -1829,7 +1828,6 @@ class V8_EXPORT String : public Name { ...@@ -1829,7 +1828,6 @@ class V8_EXPORT String : public Name {
NO_OPTIONS = 0, NO_OPTIONS = 0,
HINT_MANY_WRITES_EXPECTED = 1, HINT_MANY_WRITES_EXPECTED = 1,
NO_NULL_TERMINATION = 2, NO_NULL_TERMINATION = 2,
PRESERVE_ASCII_NULL = 4, // TODO(yangguo): deprecate this.
PRESERVE_ONE_BYTE_NULL = 4, PRESERVE_ONE_BYTE_NULL = 4,
// Used by WriteUtf8 to replace orphan surrogate code units with the // Used by WriteUtf8 to replace orphan surrogate code units with the
// unicode replacement character. Needs to be set to guarantee valid UTF-8 // unicode replacement character. Needs to be set to guarantee valid UTF-8
...@@ -1868,9 +1866,6 @@ class V8_EXPORT String : public Name { ...@@ -1868,9 +1866,6 @@ class V8_EXPORT String : public Name {
*/ */
bool IsExternalOneByte() const; bool IsExternalOneByte() const;
// TODO(yangguo): deprecate this.
bool IsExternalAscii() const { return IsExternalOneByte(); }
class V8_EXPORT ExternalStringResourceBase { // NOLINT class V8_EXPORT ExternalStringResourceBase { // NOLINT
public: public:
virtual ~ExternalStringResourceBase() {} virtual ~ExternalStringResourceBase() {}
...@@ -1949,8 +1944,6 @@ class V8_EXPORT String : public Name { ...@@ -1949,8 +1944,6 @@ class V8_EXPORT String : public Name {
ExternalOneByteStringResource() {} ExternalOneByteStringResource() {}
}; };
typedef ExternalOneByteStringResource ExternalAsciiStringResource;
/** /**
* If the string is an external string, return the ExternalStringResourceBase * If the string is an external string, return the ExternalStringResourceBase
* regardless of the encoding, otherwise return NULL. The encoding of the * regardless of the encoding, otherwise return NULL. The encoding of the
...@@ -1971,11 +1964,6 @@ class V8_EXPORT String : public Name { ...@@ -1971,11 +1964,6 @@ class V8_EXPORT String : public Name {
*/ */
const ExternalOneByteStringResource* GetExternalOneByteStringResource() const; const ExternalOneByteStringResource* GetExternalOneByteStringResource() const;
// TODO(yangguo): deprecate this.
const ExternalAsciiStringResource* GetExternalAsciiStringResource() const {
return GetExternalOneByteStringResource();
}
V8_INLINE static String* Cast(v8::Value* obj); V8_INLINE static String* Cast(v8::Value* obj);
enum NewStringType { enum NewStringType {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment