Allow struct, union and enum type declarations to be annotated.

Change-Id: Idce594b47c324d8420638e2e8853da3c99150672
Bug: 31800672
Test: hidl_test, hidl_test_java
diff --git a/Interface.cpp b/Interface.cpp
index a5d3c9b..ba5ea8c 100644
--- a/Interface.cpp
+++ b/Interface.cpp
@@ -24,12 +24,9 @@
 
 namespace android {
 
-Interface::Interface(
-        const char *localName, Interface *super,
-        std::vector<Annotation *> *annotations)
+Interface::Interface(const char *localName, Interface *super)
     : Scope(localName),
       mSuperType(super),
-      mAnnotations(annotations),
       mIsJavaCompatibleInProgress(false) {
 }
 
@@ -53,10 +50,6 @@
     return mMethods;
 }
 
-const std::vector<Annotation *> &Interface::annotations() const {
-    return *mAnnotations;
-}
-
 std::string Interface::getBaseName() const {
     return fqName().getInterfaceBaseName();
 }