delete C++ code for first memory warning
This commit is contained in:
		| @@ -33,24 +33,6 @@ namespace | ||||
|  | ||||
| namespace ix | ||||
| { | ||||
|     bool processMemoryWarningsMetricsEvent(const Json::Value& msg, | ||||
|                                            StatsdClient& statsdClient) | ||||
|     { | ||||
|         auto startTime = msg["device"]["start_time"].asUInt64(); | ||||
|         auto timestamp = msg["timestamp"].asUInt64(); | ||||
|         auto game = msg["device"]["game"].asString(); | ||||
|  | ||||
|         std::stringstream ss; | ||||
|         ss << msg["id"].asString() << "." | ||||
|            << game; | ||||
|  | ||||
|         std::string id = ss.str(); | ||||
|  | ||||
|         statsdClient.timing(id, (timestamp - startTime) / 1000); | ||||
|  | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     bool processNetRequestMetricsEvent(const Json::Value& msg, | ||||
|                                        StatsdClient& statsdClient) | ||||
|     { | ||||
| @@ -232,10 +214,6 @@ namespace ix | ||||
|             { | ||||
|                 success = processNetRequestMetricsEvent(msg, statsdClient); | ||||
|             } | ||||
|             else if (msg["id"].asString() == "engine_memory_warning_id") | ||||
|             { | ||||
|                 success = processMemoryWarningsMetricsEvent(msg, statsdClient); | ||||
|             } | ||||
|  | ||||
|             if (success) sentCount++; | ||||
|         }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user