connectivity/source/drivers/component/CTable.cxx                  |    1 -
 connectivity/source/drivers/firebird/SubComponent.hxx             |    3 ---
 connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.hxx |    1 -
 connectivity/source/drivers/mysqlc/mysqlc_subcomponent.hxx        |    9 
---------
 connectivity/source/drivers/postgresql/pq_xtable.hxx              |    2 --
 connectivity/source/inc/TSortIndex.hxx                            |    1 -
 connectivity/source/inc/calc/CConnection.hxx                      |    2 --
 connectivity/source/inc/component/CPreparedStatement.hxx          |    1 -
 connectivity/source/inc/component/CStatement.hxx                  |    1 -
 connectivity/source/inc/component/CTable.hxx                      |    8 
--------
 connectivity/source/inc/dbase/DIndex.hxx                          |    1 -
 connectivity/source/inc/dbase/DIndexes.hxx                        |    2 --
 connectivity/source/inc/dbase/DPreparedStatement.hxx              |    1 -
 connectivity/source/inc/dbase/DStatement.hxx                      |    1 -
 connectivity/source/inc/file/FConnection.hxx                      |    1 -
 connectivity/source/inc/file/FResultSet.hxx                       |    2 --
 connectivity/source/inc/file/fcomp.hxx                            |    2 --
 connectivity/source/inc/flat/EPreparedStatement.hxx               |    1 -
 connectivity/source/inc/flat/EStatement.hxx                       |    1 -
 connectivity/source/inc/flat/ETable.hxx                           |    1 -
 connectivity/source/inc/hsqldb/HStorageAccess.hxx                 |    5 -----
 connectivity/source/inc/writer/WConnection.hxx                    |    4 ----
 connectivity/source/inc/writer/WDriver.hxx                        |    5 -----
 connectivity/source/inc/writer/WTable.hxx                         |    4 ----
 24 files changed, 60 deletions(-)

New commits:
commit 7abefc023c394827563dd6fae82e873d70aeabc7
Author:     Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
AuthorDate: Mon Jan 6 11:54:40 2025 +0100
Commit:     Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
CommitDate: Sun Apr 13 10:58:22 2025 +0200

    Remove obsolete fw declarations from connectivity/
    
    found with bin/find-unneeded-includes --fwdecl
    
    Change-Id: I0da5d8732b883f862688371bfb175a0aef950691
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183880
    Tested-by: Jenkins
    Reviewed-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>

diff --git a/connectivity/source/drivers/component/CTable.cxx 
b/connectivity/source/drivers/component/CTable.cxx
index 1fe32c339faa..6fe82dc830bb 100644
--- a/connectivity/source/drivers/component/CTable.cxx
+++ b/connectivity/source/drivers/component/CTable.cxx
@@ -31,7 +31,6 @@ using namespace ::com::sun::star::sdbcx;
 using namespace ::com::sun::star::sdbc;
 using namespace ::com::sun::star::container;
 using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::sheet;
 
 
 OComponentTable::OComponentTable(sdbcx::OCollection* 
_pTables,file::OConnection* _pConnection,
diff --git a/connectivity/source/drivers/firebird/SubComponent.hxx 
b/connectivity/source/drivers/firebird/SubComponent.hxx
index 183d6daed252..8eec40e3275d 100644
--- a/connectivity/source/drivers/firebird/SubComponent.hxx
+++ b/connectivity/source/drivers/firebird/SubComponent.hxx
@@ -23,9 +23,6 @@
 #include <osl/diagnose.h>
 #include <osl/mutex.hxx>
 
-namespace cppu { class IPropertyArrayHelper; }
-namespace com::sun::star::lang { class XComponent; }
-
 namespace connectivity::firebird
 {
     /// @throws css::lang::DisposedException
diff --git a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.hxx 
b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.hxx
index 57f207c92345..7c040554137a 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.hxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.hxx
@@ -32,7 +32,6 @@ namespace connectivity::mozab
     typedef ::cppu::WeakComponentImplHelper<   css::mozilla::XMozillaBootstrap,
                                                css::lang::XServiceInfo > 
OMozillaBootstrap_BASE;
     class ProfileAccess;
-    class ProfileManager;
     class MozillaBootstrap : public OMozillaBootstrap_BASE
     {
     private:
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_subcomponent.hxx 
b/connectivity/source/drivers/mysqlc/mysqlc_subcomponent.hxx
index edba70a935ab..87978b03bd2f 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_subcomponent.hxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_subcomponent.hxx
@@ -23,15 +23,6 @@
 #include <osl/diagnose.h>
 #include <osl/mutex.hxx>
 
-namespace cppu
-{
-class IPropertyArrayHelper;
-}
-namespace com::sun::star::lang
-{
-class XComponent;
-}
-
 namespace connectivity::mysqlc
 {
 /// @throws css::lang::DisposedException
diff --git a/connectivity/source/drivers/postgresql/pq_xtable.hxx 
b/connectivity/source/drivers/postgresql/pq_xtable.hxx
index d1239fff696e..178bc9d04888 100644
--- a/connectivity/source/drivers/postgresql/pq_xtable.hxx
+++ b/connectivity/source/drivers/postgresql/pq_xtable.hxx
@@ -48,8 +48,6 @@
 namespace pq_sdbc_driver
 {
 
-class Columns;
-
 class Table : public ReflectionBase,
               public css::sdbcx::XColumnsSupplier,
               public css::sdbcx::XIndexesSupplier,
diff --git a/connectivity/source/inc/TSortIndex.hxx 
b/connectivity/source/inc/TSortIndex.hxx
index 3ac339f7e9f0..ad23e2b48ba7 100644
--- a/connectivity/source/inc/TSortIndex.hxx
+++ b/connectivity/source/inc/TSortIndex.hxx
@@ -37,7 +37,6 @@ namespace connectivity
     };
 
     class OKeySet;
-    class OKeyValue;                // simple class which holds a sal_Int32 
and a std::vector<ORowSetValueDecoratorRef>
 
     /**
         The class OSortIndex can be used to implement a sorted index.
diff --git a/connectivity/source/inc/calc/CConnection.hxx 
b/connectivity/source/inc/calc/CConnection.hxx
index f9f1b8b07afb..69f7b404f8d2 100644
--- a/connectivity/source/inc/calc/CConnection.hxx
+++ b/connectivity/source/inc/calc/CConnection.hxx
@@ -30,8 +30,6 @@ namespace com::sun::star {
     namespace sheet { class XSpreadsheetDocument; }
 }
 
-namespace utl { class CloseVeto; }
-
 
 namespace connectivity::calc
 {
diff --git a/connectivity/source/inc/component/CPreparedStatement.hxx 
b/connectivity/source/inc/component/CPreparedStatement.hxx
index 340a744ab9cc..157abfd79846 100644
--- a/connectivity/source/inc/component/CPreparedStatement.hxx
+++ b/connectivity/source/inc/component/CPreparedStatement.hxx
@@ -23,7 +23,6 @@
 
 namespace connectivity::component
 {
-    class OConnection;
     /// Prepared statement implementation for Writer tables and Calc sheets.
     class OOO_DLLPUBLIC_FILE OComponentPreparedStatement : public 
file::OPreparedStatement
     {
diff --git a/connectivity/source/inc/component/CStatement.hxx 
b/connectivity/source/inc/component/CStatement.hxx
index 70b8937250bf..df88aac4756b 100644
--- a/connectivity/source/inc/component/CStatement.hxx
+++ b/connectivity/source/inc/component/CStatement.hxx
@@ -23,7 +23,6 @@
 
 namespace connectivity::component
 {
-    class OConnection;
     /// Statement implementation for Writer tables and Calc sheets.
     class OOO_DLLPUBLIC_FILE OComponentStatement : public file::OStatement
     {
diff --git a/connectivity/source/inc/component/CTable.hxx 
b/connectivity/source/inc/component/CTable.hxx
index 5204dc9ed134..47362de5db3d 100644
--- a/connectivity/source/inc/component/CTable.hxx
+++ b/connectivity/source/inc/component/CTable.hxx
@@ -21,14 +21,6 @@
 
 #include <file/FTable.hxx>
 
-namespace com::sun::star::sheet {
-    class XSpreadsheet;
-}
-
-namespace com::sun::star::util {
-    class XNumberFormats;
-}
-
 
 namespace connectivity::component
 {
diff --git a/connectivity/source/inc/dbase/DIndex.hxx 
b/connectivity/source/inc/dbase/DIndex.hxx
index 9b3755913644..ca5a7b7e8986 100644
--- a/connectivity/source/inc/dbase/DIndex.hxx
+++ b/connectivity/source/inc/dbase/DIndex.hxx
@@ -28,7 +28,6 @@ inline constexpr OString dBASE_III_GROUP = "dBase III"_ostr;
 namespace connectivity::dbase
 {
     class OIndexIterator;
-    class ONDXKey;
 
     typedef sdbcx::OIndex ODbaseIndex_BASE;
 
diff --git a/connectivity/source/inc/dbase/DIndexes.hxx 
b/connectivity/source/inc/dbase/DIndexes.hxx
index 73987dbe700e..2f0ca38900e0 100644
--- a/connectivity/source/inc/dbase/DIndexes.hxx
+++ b/connectivity/source/inc/dbase/DIndexes.hxx
@@ -24,8 +24,6 @@
 
 namespace connectivity::dbase
 {
-    class ODbaseTable;
-
     typedef sdbcx::OCollection ODbaseIndexes_BASE;
 
     class ODbaseIndexes : public ODbaseIndexes_BASE
diff --git a/connectivity/source/inc/dbase/DPreparedStatement.hxx 
b/connectivity/source/inc/dbase/DPreparedStatement.hxx
index 55f73e6d1913..144da091fc64 100644
--- a/connectivity/source/inc/dbase/DPreparedStatement.hxx
+++ b/connectivity/source/inc/dbase/DPreparedStatement.hxx
@@ -23,7 +23,6 @@
 
 namespace connectivity::dbase
 {
-    class OConnection;
     class ODbasePreparedStatement : public file::OPreparedStatement
     {
     protected:
diff --git a/connectivity/source/inc/dbase/DStatement.hxx 
b/connectivity/source/inc/dbase/DStatement.hxx
index 83fc73aa2b9c..c142a4d6fd78 100644
--- a/connectivity/source/inc/dbase/DStatement.hxx
+++ b/connectivity/source/inc/dbase/DStatement.hxx
@@ -23,7 +23,6 @@
 
 namespace connectivity::dbase
 {
-    class OConnection;
     class ODbaseStatement : public file::OStatement
     {
     protected:
diff --git a/connectivity/source/inc/file/FConnection.hxx 
b/connectivity/source/inc/file/FConnection.hxx
index 210d2314f2b8..8a90e43ef4e3 100644
--- a/connectivity/source/inc/file/FConnection.hxx
+++ b/connectivity/source/inc/file/FConnection.hxx
@@ -32,7 +32,6 @@ namespace connectivity::sdbcx { class OCatalog; }
 
 namespace connectivity::file
 {
-    class ODatabaseMetaData;
     class OFileDriver;
 
     class OOO_DLLPUBLIC_FILE OConnection : public connectivity::OMetaConnection
diff --git a/connectivity/source/inc/file/FResultSet.hxx 
b/connectivity/source/inc/file/FResultSet.hxx
index 9b60dae420c4..155f64475162 100644
--- a/connectivity/source/inc/file/FResultSet.hxx
+++ b/connectivity/source/inc/file/FResultSet.hxx
@@ -45,8 +45,6 @@
 
 namespace connectivity::file
 {
-    class OResultSetMetaData;
-
     typedef ::cppu::WeakComponentImplHelper<  css::sdbc::XResultSet,
                                               css::sdbc::XRow,
                                               
css::sdbc::XResultSetMetaDataSupplier,
diff --git a/connectivity/source/inc/file/fcomp.hxx 
b/connectivity/source/inc/file/fcomp.hxx
index 72afcdb0a84e..5088a5556dcd 100644
--- a/connectivity/source/inc/file/fcomp.hxx
+++ b/connectivity/source/inc/file/fcomp.hxx
@@ -26,8 +26,6 @@ namespace connectivity
     class OSQLParseNode;
     namespace file
     {
-        class OCode;
-        class OOperand;
         class OSQLAnalyzer;
         typedef std::vector<std::unique_ptr<OCode>> OCodeList;
 
diff --git a/connectivity/source/inc/flat/EPreparedStatement.hxx 
b/connectivity/source/inc/flat/EPreparedStatement.hxx
index 5b51ecdf547d..02e78124476e 100644
--- a/connectivity/source/inc/flat/EPreparedStatement.hxx
+++ b/connectivity/source/inc/flat/EPreparedStatement.hxx
@@ -23,7 +23,6 @@
 
 namespace connectivity::flat
 {
-    class OConnection;
     class OFlatPreparedStatement : public file::OPreparedStatement
     {
     protected:
diff --git a/connectivity/source/inc/flat/EStatement.hxx 
b/connectivity/source/inc/flat/EStatement.hxx
index 49e513cfb5ea..fe1761d95c3a 100644
--- a/connectivity/source/inc/flat/EStatement.hxx
+++ b/connectivity/source/inc/flat/EStatement.hxx
@@ -23,7 +23,6 @@
 
 namespace connectivity::flat
 {
-    class OConnection;
     class OFlatStatement : public file::OStatement
     {
     protected:
diff --git a/connectivity/source/inc/flat/ETable.hxx 
b/connectivity/source/inc/flat/ETable.hxx
index 0178d32c53ee..3d82e0e31cd7 100644
--- a/connectivity/source/inc/flat/ETable.hxx
+++ b/connectivity/source/inc/flat/ETable.hxx
@@ -29,7 +29,6 @@
 namespace connectivity::flat
 {
     typedef file::OFileTable OFlatTable_BASE;
-    class OFlatConnection;
 
     typedef std::pair<sal_Int32, sal_Int32> TRowPositionInFile;
 
diff --git a/connectivity/source/inc/hsqldb/HStorageAccess.hxx 
b/connectivity/source/inc/hsqldb/HStorageAccess.hxx
index 5a49162c2e6b..3644ccb48be8 100644
--- a/connectivity/source/inc/hsqldb/HStorageAccess.hxx
+++ b/connectivity/source/inc/hsqldb/HStorageAccess.hxx
@@ -30,11 +30,6 @@
 #pragma clang diagnostic pop
 #endif
 
-namespace connectivity::hsqldb
-{
-    class DataLogFile;
-}
-
 jint read_from_storage_stream( JNIEnv * env, jstring name, jstring key );
 jint read_from_storage_stream_into_buffer( JNIEnv * env, jstring name, jstring 
key, jbyteArray buffer, jint off, jint len );
 void write_to_storage_stream_from_buffer( JNIEnv* env, jstring name, jstring 
key, jbyteArray buffer, jint off, jint len );
diff --git a/connectivity/source/inc/writer/WConnection.hxx 
b/connectivity/source/inc/writer/WConnection.hxx
index 5ae8b2818e0f..33c6dbb8d115 100644
--- a/connectivity/source/inc/writer/WConnection.hxx
+++ b/connectivity/source/inc/writer/WConnection.hxx
@@ -30,10 +30,6 @@ namespace com::sun::star::text
 {
 class XTextDocument;
 }
-namespace utl
-{
-class CloseVeto;
-}
 
 namespace connectivity::writer
 {
diff --git a/connectivity/source/inc/writer/WDriver.hxx 
b/connectivity/source/inc/writer/WDriver.hxx
index b43168eac9a8..cb5259227ea8 100644
--- a/connectivity/source/inc/writer/WDriver.hxx
+++ b/connectivity/source/inc/writer/WDriver.hxx
@@ -21,11 +21,6 @@
 
 #include <file/FDriver.hxx>
 
-namespace com::sun::star::lang
-{
-class XMultiServiceFactory;
-}
-
 namespace connectivity::writer
 {
 class ODriver : public file::OFileDriver
diff --git a/connectivity/source/inc/writer/WTable.hxx 
b/connectivity/source/inc/writer/WTable.hxx
index 46ee5412e0a6..685a098e5025 100644
--- a/connectivity/source/inc/writer/WTable.hxx
+++ b/connectivity/source/inc/writer/WTable.hxx
@@ -25,10 +25,6 @@ namespace com::sun::star::text
 {
 class XTextTable;
 }
-namespace com::sun::star::util
-{
-class XNumberFormats;
-}
 
 namespace connectivity::writer
 {

Reply via email to