Remove TypeNamespace

1. Remove TypeNamesapce
2. In aidl.cpp, just validate language specific restriction(validate_type)
   instead of register_type

Test: m
Test: ./runtests.sh
Bug: 110967839
Change-Id: I7406f5b326af4e2342059aef9277ddfb24775ce9
diff --git a/aidl.h b/aidl.h
index 5b5799c..955b280 100644
--- a/aidl.h
+++ b/aidl.h
@@ -25,7 +25,6 @@
 #include "import_resolver.h"
 #include "io_delegate.h"
 #include "options.h"
-#include "type_namespace.h"
 
 namespace android {
 namespace aidl {
@@ -56,12 +55,12 @@
 namespace internals {
 
 AidlError load_and_validate_aidl(const std::string& input_file_name, const Options& options,
-                                 const IoDelegate& io_delegate, TypeNamespace* types,
+                                 const IoDelegate& io_delegate, AidlTypenames* typenames,
                                  vector<AidlDefinedType*>* defined_types,
                                  vector<string>* imported_files);
 
 bool parse_preprocessed_file(const IoDelegate& io_delegate, const std::string& filename,
-                             TypeNamespace* types, AidlTypenames& typenames);
+                             AidlTypenames* typenames);
 
 } // namespace internals