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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/String16_cpp.template

Issue 2260233002: [DevTools] Migrate v8_inspector/public from String16 to String{View,Buffer}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: styling Created 4 years, 4 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
Index: third_party/WebKit/Source/platform/inspector_protocol/String16_cpp.template
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/String16_cpp.template b/third_party/WebKit/Source/platform/inspector_protocol/String16_cpp.template
index d795aefa0c2f2549eb44bc2ac12e1dd38f4527ef..dd411f75afabe6181757d243ce567e6676d22bc5 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/String16_cpp.template
+++ b/third_party/WebKit/Source/platform/inspector_protocol/String16_cpp.template
@@ -31,15 +31,6 @@ void doubleToStr6(double number, char* buffer, size_t length)
std::snprintf(buffer, length, "%.6g", number);
}
-double strToDouble(const char* buffer, bool* ok)
-{
- char* endptr;
- double result = std::strtod(buffer, &endptr);
- if (ok)
- *ok = !(*endptr);
- return result;
-}
-
int strToInt(const char* buffer, bool* ok)
{
char* endptr;

Powered by Google App Engine
This is Rietveld 408576698