| Index: runtime/vm/object.h
|
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h
|
| index 92ac4212358783f080c3b9bce9e549cae820e7a3..9fb353c40a68f5ef9e8d34cd86f413a2f3f3eb0f 100644
|
| --- a/runtime/vm/object.h
|
| +++ b/runtime/vm/object.h
|
| @@ -4042,14 +4042,6 @@ class Instance : public Object {
|
| // error object if evaluating the expression fails.
|
| RawObject* Evaluate(const String& expr) const;
|
|
|
| - // Returns a string representation of this instance in a form
|
| - // that is suitable for an end user.
|
| - //
|
| - // max_len is advisory, and the returned string may exceed this max
|
| - // length.
|
| - virtual const char* ToUserCString(intptr_t max_len = 40,
|
| - intptr_t nesting = 0) const;
|
| -
|
| static intptr_t InstanceSize() {
|
| return RoundedAllocationSize(sizeof(RawInstance));
|
| }
|
| @@ -5139,6 +5131,9 @@ class String : public Instance {
|
|
|
| void ToUTF8(uint8_t* utf8_array, intptr_t array_len) const;
|
|
|
| + // Produces a quoted, escaped, (possibly) truncated string.
|
| + const char* ToUserCString(intptr_t max_len) const;
|
| +
|
| // Copies the string characters into the provided external array
|
| // and morphs the string object into an external string object.
|
| // The remaining unused part of the original string object is marked as
|
| @@ -5149,10 +5144,6 @@ class String : public Instance {
|
| void* peer,
|
| Dart_PeerFinalizer cback) const;
|
|
|
| - // Produces a quoted, escaped, (possibly) truncated string.
|
| - const char* ToUserCString(intptr_t max_len = 40,
|
| - intptr_t nesting = 0) const;
|
| -
|
| // Creates a new String object from a C string that is assumed to contain
|
| // UTF-8 encoded characters and '\0' is considered a termination character.
|
| // TODO(7123) - Rename this to FromCString(....).
|
| @@ -5899,11 +5890,6 @@ class GrowableObjectArray : public Instance {
|
| return Instance::null();
|
| }
|
|
|
| - // Produces a readable representation of this array, e.g. '[1,2,3]',
|
| - // subject to length limits.
|
| - const char* ToUserCString(intptr_t max_len = 40,
|
| - intptr_t nesting = 0) const;
|
| -
|
| static intptr_t type_arguments_offset() {
|
| return OFFSET_OF(RawGrowableObjectArray, type_arguments_);
|
| }
|
|
|