Remove localName from NamedType

The Formatter CL introduced definedName to type which is the very thing
that NamedType::localName already did.

Thus localName should be removed.

Bug: 137553653
Test: ./test/run_all_*_test.sh
Change-Id: I61bff460d77d7b880831115be0602a49669fd7be
Merged-In: I61bff460d77d7b880831115be0602a49669fd7be
diff --git a/generateJava.cpp b/generateJava.cpp
index cb3fcbb..0618750 100644
--- a/generateJava.cpp
+++ b/generateJava.cpp
@@ -49,7 +49,7 @@
     CHECK(!limitToType.empty()) << getFilename();
 
     for (const auto& type : mRootScope.getSubTypes()) {
-        std::string typeName = type->localName();
+        std::string typeName = type->definedName();
 
         if (type->isTypeDef()) continue;
         if (typeName != limitToType) continue;
@@ -140,7 +140,7 @@
     }
 
     const Interface* iface = mRootScope.getInterface();
-    const std::string ifaceName = iface->localName();
+    const std::string ifaceName = iface->definedName();
     const std::string baseName = iface->getBaseName();
 
     out << "package " << mPackage.javaPackage() << ";\n\n";