Kaydet (Commit) 6d8b0622 authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: update unused code

Change-Id: I3cd65d112339fa9c67ed462fe39acbbef91d4d8d
üst 9d5e53b6
...@@ -387,56 +387,6 @@ namespace dbtools ...@@ -387,56 +387,6 @@ namespace dbtools
return Any(); return Any();
} }
Any OPredicateInputController::getPredicateValue(
const OUString& _sField, const OUString& _rPredicateValue, OUString* _pErrorMessage ) const
{
OUString sError;
OUString sField = _sField;
sal_Int32 nIndex = 0;
sField = sField.getToken(0,'(',nIndex);
if(nIndex == -1)
sField = _sField;
sal_Int32 nType = ::connectivity::OSQLParser::getFunctionReturnType(sField,&m_aParser.getContext());
if ( nType == DataType::OTHER || sField.isEmpty() )
{
// first try the international version
OUString sSql = "SELECT * FROM x WHERE " + sField + _rPredicateValue;
boost::scoped_ptr<OSQLParseNode> pParseNode( const_cast< OSQLParser& >( m_aParser ).parseTree( sError, sSql, true ) );
nType = DataType::DOUBLE;
if ( pParseNode.get() )
{
OSQLParseNode* pColumnRef = pParseNode->getByRule(OSQLParseNode::column_ref);
if ( pColumnRef )
{
}
}
}
Reference<XDatabaseMetaData> xMeta = m_xConnection->getMetaData();
parse::OParseColumn* pColumn = new parse::OParseColumn( sField,
OUString(),
OUString(),
OUString(),
ColumnValue::NULLABLE_UNKNOWN,
0,
0,
nType,
false,
false,
xMeta.is() && xMeta->supportsMixedCaseQuotedIdentifiers(),
OUString(),
OUString(),
OUString());
Reference<XPropertySet> xColumn = pColumn;
pColumn->setFunction(true);
pColumn->setRealName(sField);
OSQLParseNode* pParseNode = implPredicateTree( sError, _rPredicateValue, xColumn );
if ( _pErrorMessage )
*_pErrorMessage = sError;
return pParseNode ? implParseNode(pParseNode, false) : Any();
}
Any OPredicateInputController::implParseNode(OSQLParseNode* pParseNode, bool _bForStatementUse) const Any OPredicateInputController::implParseNode(OSQLParseNode* pParseNode, bool _bForStatementUse) const
{ {
if ( ! pParseNode ) if ( ! pParseNode )
......
...@@ -112,11 +112,6 @@ namespace dbtools ...@@ -112,11 +112,6 @@ namespace dbtools
OUString* _pErrorMessage = NULL OUString* _pErrorMessage = NULL
) const; ) const;
::com::sun::star::uno::Any getPredicateValue(
const OUString& _sField
, const OUString& _rPredicateValue
, OUString* _pErrorMessage = NULL) const;
private: private:
::connectivity::OSQLParseNode* implPredicateTree( ::connectivity::OSQLParseNode* implPredicateTree(
OUString& _rErrorMessage, OUString& _rErrorMessage,
......
...@@ -112,8 +112,11 @@ public: ...@@ -112,8 +112,11 @@ public:
TYPEINFO(); TYPEINFO();
virtual void Closed(); virtual void Closed();
#if defined WNT
SvBaseLink( const OUString& rNm, sal_uInt16 nObjectType, SvBaseLink( const OUString& rNm, sal_uInt16 nObjectType,
SvLinkSource* ); SvLinkSource* );
#endif
sal_uInt16 GetObjType() const { return nObjType; } sal_uInt16 GetObjType() const { return nObjType; }
......
...@@ -183,18 +183,6 @@ OUString getDirFromFile(const OUString& usFilePath) ...@@ -183,18 +183,6 @@ OUString getDirFromFile(const OUString& usFilePath)
return OUString(usFilePath.getStr(), index); return OUString(usFilePath.getStr(), index);
} }
OUString getExecutableDirectory()
{
rtl_uString* sExe = NULL;
if (osl_getExecutableFile( & sExe) != osl_Process_E_None)
throw FrameworkException(
JFW_E_ERROR,
"[Java framework] Error in function getExecutableDirectory (fwkutil.cxx)");
OUString ouExe(sExe, SAL_NO_ACQUIRE);
return getDirFromFile(ouExe);
}
OUString getLibraryLocation() OUString getLibraryLocation()
{ {
OString sExcMsg("[Java framework] Error in function getLibraryLocation " OString sExcMsg("[Java framework] Error in function getLibraryLocation "
......
...@@ -76,10 +76,6 @@ OUString getPlatform(); ...@@ -76,10 +76,6 @@ OUString getPlatform();
OUString getDirFromFile(const OUString& usFilePath); OUString getDirFromFile(const OUString& usFilePath);
/** Returns the file URL of the folder where the executable resides.
*/
OUString getExecutableDirectory();
enum FileStatus enum FileStatus
{ {
FILE_OK, FILE_OK,
......
...@@ -40,8 +40,6 @@ namespace sfx2 ...@@ -40,8 +40,6 @@ namespace sfx2
TYPEINIT0( SvBaseLink ) TYPEINIT0( SvBaseLink )
static DdeTopic* FindTopic( const OUString &, sal_uInt16* = 0 );
class ImplDdeItem; class ImplDdeItem;
struct BaseLink_Impl struct BaseLink_Impl
...@@ -150,7 +148,47 @@ SvBaseLink::SvBaseLink( sal_uInt16 nUpdateMode, sal_uIntPtr nContentType ) ...@@ -150,7 +148,47 @@ SvBaseLink::SvBaseLink( sal_uInt16 nUpdateMode, sal_uIntPtr nContentType )
pImplData->ClientType.bIntrnlLnk = false; pImplData->ClientType.bIntrnlLnk = false;
} }
#if defined WNT
static DdeTopic* FindTopic( const OUString & rLinkName, sal_uInt16* pItemStt )
{
if( rLinkName.isEmpty() )
return 0;
OUString sNm( rLinkName );
sal_Int32 nTokenPos = 0;
OUString sService( sNm.getToken( 0, cTokenSeparator, nTokenPos ) );
DdeServices& rSvc = DdeService::GetServices();
for (DdeServices::iterator aI = rSvc.begin(); aI != rSvc.end(); ++aI)
{
DdeService* pService = *aI;
if( pService->GetName() == sService )
{
// then we search for the Topic
OUString sTopic( sNm.getToken( 0, cTokenSeparator, nTokenPos ) );
if( pItemStt )
*pItemStt = nTokenPos;
std::vector<DdeTopic*>& rTopics = pService->GetTopics();
for( int i = 0; i < 2; ++i )
{
for( std::vector<DdeTopic*>::iterator iterTopic = rTopics.begin();
iterTopic != rTopics.end(); ++iterTopic )
if( (*iterTopic)->GetName() == sTopic )
return *iterTopic;
// Topic not found?
// then we try once to create it
if( i || !pService->MakeTopic( sTopic ) )
break; // did not work, exiting
}
break;
}
}
return 0;
}
SvBaseLink::SvBaseLink( const OUString& rLinkName, sal_uInt16 nObjectType, SvLinkSource* pObj ) SvBaseLink::SvBaseLink( const OUString& rLinkName, sal_uInt16 nObjectType, SvLinkSource* pObj )
: pImpl(0) : pImpl(0)
...@@ -189,7 +227,7 @@ SvBaseLink::SvBaseLink( const OUString& rLinkName, sal_uInt16 nObjectType, SvLin ...@@ -189,7 +227,7 @@ SvBaseLink::SvBaseLink( const OUString& rLinkName, sal_uInt16 nObjectType, SvLin
xObj = pObj; xObj = pObj;
} }
#endif
SvBaseLink::~SvBaseLink() SvBaseLink::~SvBaseLink()
{ {
...@@ -596,47 +634,6 @@ void ImplDdeItem::AdviseLoop( bool bOpen ) ...@@ -596,47 +634,6 @@ void ImplDdeItem::AdviseLoop( bool bOpen )
} }
} }
static DdeTopic* FindTopic( const OUString & rLinkName, sal_uInt16* pItemStt )
{
if( rLinkName.isEmpty() )
return 0;
OUString sNm( rLinkName );
sal_Int32 nTokenPos = 0;
OUString sService( sNm.getToken( 0, cTokenSeparator, nTokenPos ) );
DdeServices& rSvc = DdeService::GetServices();
for (DdeServices::iterator aI = rSvc.begin(); aI != rSvc.end(); ++aI)
{
DdeService* pService = *aI;
if( pService->GetName() == sService )
{
// then we search for the Topic
OUString sTopic( sNm.getToken( 0, cTokenSeparator, nTokenPos ) );
if( pItemStt )
*pItemStt = nTokenPos;
std::vector<DdeTopic*>& rTopics = pService->GetTopics();
for( int i = 0; i < 2; ++i )
{
for( std::vector<DdeTopic*>::iterator iterTopic = rTopics.begin();
iterTopic != rTopics.end(); ++iterTopic )
if( (*iterTopic)->GetName() == sTopic )
return *iterTopic;
// Topic not found?
// then we try once to create it
if( i || !pService->MakeTopic( sTopic ) )
break; // did not work, exiting
}
break;
}
}
return 0;
}
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -39,13 +39,6 @@ class SwBaseLink : public ::sfx2::SvBaseLink ...@@ -39,13 +39,6 @@ class SwBaseLink : public ::sfx2::SvBaseLink
protected: protected:
SwBaseLink(): m_pReReadThread(0) {} SwBaseLink(): m_pReReadThread(0) {}
SwBaseLink( const OUString& rNm, sal_uInt16 nObjectType, ::sfx2::SvLinkSource* pObj,
SwCntntNode* pNode = 0 )
: ::sfx2::SvBaseLink( rNm, nObjectType, pObj ), pCntntNode( pNode ),
bSwapIn( false ), bNoDataFlag( false ), bIgnoreDataChanged( false ),
m_pReReadThread(0)
{}
public: public:
TYPEINFO_OVERRIDE(); TYPEINFO_OVERRIDE();
......
...@@ -8,6 +8,7 @@ GDriveSession::GDriveSession() ...@@ -8,6 +8,7 @@ GDriveSession::GDriveSession()
ImpBitmap::ImplCrop(Rectangle const&) ImpBitmap::ImplCrop(Rectangle const&)
ImpBitmap::ImplErase(Color const&) ImpBitmap::ImplErase(Color const&)
ImpBitmap::ImplSetSalBitmap(SalBitmap*) ImpBitmap::ImplSetSalBitmap(SalBitmap*)
NfCurrencyEntry::Clone() const
OpenGLContext::init(_XDisplay*, unsigned long, unsigned int, unsigned int, int) OpenGLContext::init(_XDisplay*, unsigned long, unsigned int, unsigned int, int)
OpenGLContext::renderToFile() OpenGLContext::renderToFile()
OpenGLContext::requestSingleBufferedRendering() OpenGLContext::requestSingleBufferedRendering()
...@@ -190,6 +191,7 @@ sc::CLBuildKernelThread::consume() ...@@ -190,6 +191,7 @@ sc::CLBuildKernelThread::consume()
sc::CLBuildKernelThread::finish() sc::CLBuildKernelThread::finish()
sc::CLBuildKernelThread::produce() sc::CLBuildKernelThread::produce()
sc::CellValues::transferTo(ScColumn&, int) sc::CellValues::transferTo(ScColumn&, int)
sc::ColumnSpanSet::swap(sc::ColumnSpanSet&)
sc::FormulaGroupAreaListener::getGroupLength() const sc::FormulaGroupAreaListener::getGroupLength() const
sc::FormulaGroupAreaListener::getRange() const sc::FormulaGroupAreaListener::getRange() const
sc::FormulaGroupAreaListener::getTopCellPos() const sc::FormulaGroupAreaListener::getTopCellPos() const
...@@ -198,7 +200,6 @@ sc::FormulaGroupAreaListener::isStartFixed() const ...@@ -198,7 +200,6 @@ sc::FormulaGroupAreaListener::isStartFixed() const
sd::LeftDrawPaneShell::RegisterInterface(SfxModule*) sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
sd::LeftImpressPaneShell::RegisterInterface(SfxModule*) sd::LeftImpressPaneShell::RegisterInterface(SfxModule*)
sdr::contact::ViewContactOfTextObj::GetTextObj() const sdr::contact::ViewContactOfTextObj::GetTextObj() const
sfx2::SvBaseLink::SvBaseLink(rtl::OUString const&, unsigned short, sfx2::SvLinkSource*)
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >::_Rb_tree(std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >&&) std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >::_Rb_tree(std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >&&)
std::__cxx1998::vector<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread>, std::allocator<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread> > >::reserve(unsigned long) std::__cxx1998::vector<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread>, std::allocator<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread> > >::reserve(unsigned long)
vcl::MapChar(vcl::_TrueTypeFont*, unsigned short, bool) vcl::MapChar(vcl::_TrueTypeFont*, unsigned short, bool)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment