diff options
| author | Jean-Baptiste Queru <jbq@google.com> | 2009-11-12 18:45:53 -0800 |
|---|---|---|
| committer | Jean-Baptiste Queru <jbq@google.com> | 2009-11-13 13:53:39 -0800 |
| commit | 9db3d07b9620b4269ab33f78604a36327e536ce1 (patch) | |
| tree | 41e294f34b9695187af098cd42167489fb0c8fb0 /tools/aidl/AST.cpp | |
| parent | 6c63ee4fc4acae4bbbbd2a49e0a68206221f0de0 (diff) | |
| download | frameworks_base-9db3d07b9620b4269ab33f78604a36327e536ce1.zip frameworks_base-9db3d07b9620b4269ab33f78604a36327e536ce1.tar.gz frameworks_base-9db3d07b9620b4269ab33f78604a36327e536ce1.tar.bz2 | |
eclair snapshot
Diffstat (limited to 'tools/aidl/AST.cpp')
| -rwxr-xr-x | tools/aidl/AST.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tools/aidl/AST.cpp b/tools/aidl/AST.cpp index 85ca5da..752ef7c 100755 --- a/tools/aidl/AST.cpp +++ b/tools/aidl/AST.cpp @@ -845,23 +845,6 @@ Document::Write(FILE* to) fprintf(to, "package %s;\n", this->package.c_str()); } - // gather the types for the import statements - set<Type*> types; - N = this->classes.size(); - for (i=0; i<N; i++) { - Class* c = this->classes[i]; - c->GatherTypes(&types); - } - - set<Type*>::iterator it; - for (it=types.begin(); it!=types.end(); it++) { - Type* t = *it; - string pkg = t->Package(); - if (pkg.length() != 0 && pkg != this->package) { - fprintf(to, "import %s;\n", t->ImportType().c_str()); - } - } - N = this->classes.size(); for (i=0; i<N; i++) { Class* c = this->classes[i]; |
