HAS_GLOBAL_STRING is no longer defined. ::string resolves to std::string on PLATFORM_GOOGLE.

PiperOrigin-RevId: 250806911
This commit is contained in:
Dero Gharibian 2019-05-30 18:50:39 -07:00 committed by TensorFlower Gardener
parent 0116cc04ca
commit ba80787ebc
2 changed files with 0 additions and 8 deletions

View File

@ -20,9 +20,7 @@ limitations under the License.
namespace tflite {
#ifndef HAS_GLOBAL_STRING
using std::string;
#endif
} // namespace tflite

View File

@ -36,12 +36,6 @@ inline const char* IdentityOrConvertStringToRaw(const std::string& foo) {
return foo.c_str();
}
#if defined(PLATFORM_GOOGLE) && defined(HAS_GLOBAL_STRING)
// Overloaded case where we return string.
inline const char* IdentityOrConvertStringToRaw(const string& foo) {
return foo.c_str();
}
#endif // PLATFORM_GOOGLE
// Delegate to TensorFlow Appendf function until absl has an equivalent.
template <typename... Args>
inline void AppendFHelper(string* destination, const char* fmt,