diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-07-31 17:36:43 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-07-31 17:36:43 +0000 |
commit | 9dc694ea67b3191671b3a74e93c760194d90a0fb (patch) | |
tree | 9d5935ad1497975757924a60d3fe6c93667d3596 /soltools | |
parent | 2f74809e61c10aa65729df36030d341d4a51cf8c (diff) |
INTEGRATION: CWS mh30b (1.12.8); FILE MERGED
2008/07/16 13:02:55 mh 1.12.8.1: remove unused code, #i91591#
Diffstat (limited to 'soltools')
-rw-r--r-- | soltools/javadep/javadep.c | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/soltools/javadep/javadep.c b/soltools/javadep/javadep.c index f17b48d23bbc..eeb7e1b62357 100644 --- a/soltools/javadep/javadep.c +++ b/soltools/javadep/javadep.c @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: javadep.c,v $ - * $Revision: 1.13 $ + * $Revision: 1.14 $ * * This file is part of OpenOffice.org. * @@ -123,7 +123,6 @@ uint16 read_uint16(const file_t *pfile); uint32 read_uint32(const file_t *pfile); void skip_bytes(const file_t *pfile, const size_t nnum); char *escape_slash(const char *pstr); -char *get_stripped_class(const char *pclass); int is_inner(const char *pstr); void print_dependencies(const struct growable *pdep, const char* pclass_file); @@ -334,38 +333,6 @@ add_to_dependencies(struct growable *pdep, return; } -char *get_stripped_class(const char *pclass) -{ - /* returns fresh allocated string with the simple unadorned - * class name from a full qualified class name. - * - * caller is resposible for freeing - */ - char *pstr, *ptmpstr; - - pstr = ptmpstr = strdup(pclass); - - /* '\\' might be possible on WIN32 plattforms */ - while ( (ptmpstr = strchr(ptmpstr, '\\')) != NULL ) - *ptmpstr = '/'; - - /* remove any trailing .class */ - ptmpstr = strchr(pstr, '.'); - if ( ptmpstr ) - *ptmpstr = '\0'; - - /* remove leading package descriptors */ - ptmpstr = strrchr(pstr, '/'); - if ( !ptmpstr ) { - return pstr; - } - else { - ptmpstr = strdup(ptmpstr); - free(pstr); - return ptmpstr; - } -} - char * escape_slash(const char *pstr) { |