diff options
author | Bálint Dózsa <dozsabalint@gmail.com> | 2011-02-16 18:59:20 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-02-16 21:08:26 +0100 |
commit | fcf3851494f067635dc576a2f69207184168b1e7 (patch) | |
tree | df828eefa00a51562c55e8b877603d3d54ed0475 /xmlhelp | |
parent | b0ead278358dd5d96726bf42293325388bef1cbb (diff) |
Remove dead code
Diffstat (limited to 'xmlhelp')
-rwxr-xr-x | xmlhelp/source/com/sun/star/help/HelpComponent.java | 37 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/contentcaps.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/db.cxx | 44 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/db.hxx | 17 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 18 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.hxx | 2 |
6 files changed, 1 insertions, 119 deletions
diff --git a/xmlhelp/source/com/sun/star/help/HelpComponent.java b/xmlhelp/source/com/sun/star/help/HelpComponent.java index b12eb20f9485..cdbd3818acf3 100755 --- a/xmlhelp/source/com/sun/star/help/HelpComponent.java +++ b/xmlhelp/source/com/sun/star/help/HelpComponent.java @@ -31,43 +31,6 @@ import com.sun.star.lib.uno.helper.Factory; import com.sun.star.lang.XSingleComponentFactory; import com.sun.star.registry.XRegistryKey; -/* -import com.sun.star.lib.uno.helper.Factory; -import com.sun.star.lang.XMultiComponentFactory; -import com.sun.star.lang.XSingleComponentFactory; -import com.sun.star.lib.uno.helper.WeakBase; -import com.sun.star.uno.UnoRuntime; -import com.sun.star.uno.XComponentContext; -import com.sun.star.registry.XRegistryKey; -import com.sun.star.lang.XInitialization; -import com.sun.star.lang.XTypeProvider; -import com.sun.star.lang.XServiceInfo; -import com.sun.star.uno.Type; -import com.sun.star.uno.Any; -import com.sun.star.uno.AnyConverter; - -import org.apache.lucene.analysis.Analyzer; -import org.apache.lucene.analysis.standard.StandardAnalyzer; -import org.apache.lucene.document.Document; -import org.apache.lucene.index.FilterIndexReader; -import org.apache.lucene.index.IndexReader; -import org.apache.lucene.index.Term; -import org.apache.lucene.queryParser.QueryParser; -import org.apache.lucene.search.Hits; -import org.apache.lucene.search.IndexSearcher; -import org.apache.lucene.search.Query; -import org.apache.lucene.search.Searcher; -import org.apache.lucene.search.TermQuery; -import org.apache.lucene.search.WildcardQuery; - -import com.sun.star.script.XInvocation; -import com.sun.star.beans.XIntrospectionAccess; - -import java.io.FileOutputStream; -import java.io.PrintStream; -import java.io.File; -*/ - /** This class capsulates the class, that implements the minimal component, a * factory for creating the service (<CODE>__getComponentFactory</CODE>) and a * method, that writes the information into the given registry key diff --git a/xmlhelp/source/cxxhelp/provider/contentcaps.cxx b/xmlhelp/source/cxxhelp/provider/contentcaps.cxx index e5ea00da403b..e778cbf7e1bd 100644 --- a/xmlhelp/source/cxxhelp/provider/contentcaps.cxx +++ b/xmlhelp/source/cxxhelp/provider/contentcaps.cxx @@ -194,8 +194,6 @@ uno::Sequence< beans::Property > Content::getProperties( uno::Sequence< star::ucb::CommandInfo > Content::getCommands( const uno::Reference< star::ucb::XCommandEnvironment > & /*xEnv*/ ) { -// osl::MutexGuard aGuard( m_aMutex ); - //================================================================= // // Supported commands diff --git a/xmlhelp/source/cxxhelp/provider/db.cxx b/xmlhelp/source/cxxhelp/provider/db.cxx index 5b83ae88d435..3bb5a68fd75d 100644 --- a/xmlhelp/source/cxxhelp/provider/db.cxx +++ b/xmlhelp/source/cxxhelp/provider/db.cxx @@ -45,13 +45,9 @@ namespace berkeleydbproxy { //---------------------------------------------------------------------------- namespace db_internal { - // static void raise_error(int dberr, const char * where); - static inline int check_error(int dberr, const char * where) { (void)where; - - // if (dberr) raise_error(dberr,where); return dberr; } } @@ -390,28 +386,6 @@ Dbt::Dbt(void *data_arg, u_int32_t size_arg) this->set_size(size_arg); } -/* -Dbt::Dbt(const Dbt & other) -{ - using namespace std; - const DBT *otherpod = &other; - DBT *thispod = this; - memcpy(thispod, otherpod, sizeof *thispod); -} - -Dbt& Dbt::operator = (const Dbt & other) -{ - if (this != &other) - { - using namespace std; - const DBT *otherpod = &other; - DBT *thispod = this; - memcpy(thispod, otherpod, sizeof *thispod); - } - return *this; -} -*/ - Dbt::~Dbt() { } @@ -441,24 +415,6 @@ void Dbt::set_flags(u_int32_t value) this->flags = value; } -//---------------------------------------------------------------------------- -/* -void db_internal::raise_error(int dberr, const char * where) -{ - if (!where) where = "<unknown>"; - - const char * dberrmsg = db_strerror(dberr); - if (!dberrmsg || !*dberrmsg) dberrmsg = "<unknown DB error>"; - - rtl::OString msg = where; - msg += ": "; - msg += dberrmsg; - - throw DbException(msg); -} -*/ - -//---------------------------------------------------------------------------- } // namespace ecomp /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmlhelp/source/cxxhelp/provider/db.hxx b/xmlhelp/source/cxxhelp/provider/db.hxx index fdfd17148474..f36b880af27d 100644 --- a/xmlhelp/source/cxxhelp/provider/db.hxx +++ b/xmlhelp/source/cxxhelp/provider/db.hxx @@ -211,8 +211,6 @@ namespace berkeleydbproxy { Dbt(void *data_arg, u_int32_t size_arg); Dbt(); - //Dbt(const Dbt & other); - //Dbt & operator=(const Dbt & other); ~Dbt(); @@ -228,19 +226,4 @@ namespace berkeleydbproxy { #endif - - - - - - - - - - - - - - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index ff05d538d1d4..7f89f12c4c99 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -543,7 +543,6 @@ void URLParameter::open( const Reference< XMultiServiceFactory >& rxSMgr, void URLParameter::parse() throw( com::sun::star::ucb::IllegalIdentifierException ) { - // fprintf(stdout,"url send to xmlhelp: %s\n",(rtl::OUStringToOString(m_aURL,RTL_TEXTENCODING_UTF8).getStr())); m_aExpr = m_aURL; sal_Int32 lstIdx = m_aExpr.lastIndexOf( sal_Unicode( '#' ) ); @@ -619,9 +618,6 @@ bool URLParameter::name( bool modulePresent ) { sal_Int32 idx = 1; while( idx < length && (m_aExpr.getStr())[idx] != '?' ) -// ( isLetterOrDigit( (m_aExpr.getStr())[idx] ) -// || (m_aExpr.getStr())[idx] == '/' -// || (m_aExpr.getStr())[idx] == '.' )) ++idx; if( idx != 1 && ! modulePresent ) @@ -633,7 +629,6 @@ bool URLParameter::name( bool modulePresent ) } } -// fprintf(stdout,"id %s\n",(rtl::OUStringToOString(m_aId,RTL_TEXTENCODING_UTF8).getStr())); return true; } @@ -886,18 +881,6 @@ fileClose(void * context) { } // extern "C" -/* -// For debugging only -extern "C" void StructuredXMLErrorFunction(void *userData, xmlErrorPtr error) -{ - (void)userData; - (void)error; - - // Reset error handler - xmlSetStructuredErrorFunc( NULL, NULL ); -} -*/ - InputStreamTransformer::InputStreamTransformer( URLParameter* urlParam, Databases* pDatabases, bool isRoot ) @@ -1065,7 +1048,6 @@ InputStreamTransformer::InputStreamTransformer( URLParameter* urlParam, xmlRegisterInputCallbacks(zipMatch, zipOpen, zipRead, uriClose); xmlRegisterInputCallbacks(helpMatch, helpOpen, helpRead, uriClose); xmlRegisterInputCallbacks(fileMatch, fileOpen, fileRead, fileClose); - //xmlSetStructuredErrorFunc( NULL, (xmlStructuredErrorFunc)StructuredXMLErrorFunction ); xsltStylesheetPtr cur = xsltParseStylesheetFile((const xmlChar *)xslURLascii.getStr()); diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx index eea149af5e77..e4bf9fbd0a3c 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx @@ -96,7 +96,7 @@ namespace chelp { rtl::OUString getTitle() { - if( ! m_ptr ) // || getHash().getLength() ) + if( ! m_ptr ) return rtl::OUString(); sal_Int32 sizeOfTitle = |