Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
10e92b82
Kaydet (Commit)
10e92b82
authored
Mar 28, 2012
tarafından
Santiago Martinez
Kaydeden (comit)
Caolán McNamara
Mar 29, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused code in sqlnode
üst
31d26fb9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
46 deletions
+0
-46
sqlnode.hxx
connectivity/inc/connectivity/sqlnode.hxx
+0
-2
sqlnode.cxx
connectivity/source/parse/sqlnode.cxx
+0
-41
unusedcode.easy
unusedcode.easy
+0
-3
No files found.
connectivity/inc/connectivity/sqlnode.hxx
Dosyayı görüntüle @
10e92b82
...
...
@@ -278,11 +278,9 @@ namespace connectivity
void
append
(
OSQLParseNode
*
pNewSubTree
);
void
insert
(
sal_uInt32
nPos
,
OSQLParseNode
*
pNewSubTree
);
OSQLParseNode
*
replaceAt
(
sal_uInt32
nPos
,
OSQLParseNode
*
pNewSubTree
);
OSQLParseNode
*
replace
(
OSQLParseNode
*
pOldSubTree
,
OSQLParseNode
*
pNewSubTree
);
OSQLParseNode
*
removeAt
(
sal_uInt32
nPos
);
OSQLParseNode
*
remove
(
OSQLParseNode
*
pSubTree
);
void
replaceNodeValue
(
const
::
rtl
::
OUString
&
rTableAlias
,
const
::
rtl
::
OUString
&
rColumnName
);
...
...
connectivity/source/parse/sqlnode.cxx
Dosyayı görüntüle @
10e92b82
...
...
@@ -2383,44 +2383,8 @@ OSQLParseNode* OSQLParseNode::removeAt(sal_uInt32 nPos)
m_aChildren
.
erase
(
aPos
);
return
pNode
;
}
//-----------------------------------------------------------------------------
OSQLParseNode
*
OSQLParseNode
::
remove
(
OSQLParseNode
*
pSubTree
)
{
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLogger
,
"parse"
,
"Ocke.Janssen@sun.com"
,
"OSQLParseNode::remove"
);
OSL_ENSURE
(
pSubTree
!=
NULL
,
"OSQLParseNode: invalid SubTree"
);
OSQLParseNodes
::
iterator
aPos
=
::
std
::
find
(
m_aChildren
.
begin
(),
m_aChildren
.
end
(),
pSubTree
);
if
(
aPos
!=
m_aChildren
.
end
())
{
// Set the getParent of the removed node to NULL
pSubTree
->
setParent
(
NULL
);
m_aChildren
.
erase
(
aPos
);
return
pSubTree
;
}
else
return
NULL
;
}
// Replace methods
//-----------------------------------------------------------------------------
OSQLParseNode
*
OSQLParseNode
::
replaceAt
(
sal_uInt32
nPos
,
OSQLParseNode
*
pNewSubNode
)
{
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLogger
,
"parse"
,
"Ocke.Janssen@sun.com"
,
"OSQLParseNode::replaceAt"
);
OSL_ENSURE
(
pNewSubNode
!=
NULL
,
"OSQLParseNode: invalid nodes"
);
OSL_ENSURE
(
pNewSubNode
->
getParent
()
==
NULL
,
"OSQLParseNode: node already has getParent"
);
OSL_ENSURE
(
nPos
<
m_aChildren
.
size
(),
"OSQLParseNode: invalid position"
);
OSL_ENSURE
(
::
std
::
find
(
m_aChildren
.
begin
(),
m_aChildren
.
end
(),
pNewSubNode
)
==
m_aChildren
.
end
(),
"OSQLParseNode::Replace() Node already element of parent"
);
OSQLParseNode
*
pOldSubNode
=
m_aChildren
[
nPos
];
// Create connection to getParent
pNewSubNode
->
setParent
(
this
);
pOldSubNode
->
setParent
(
NULL
);
m_aChildren
[
nPos
]
=
pNewSubNode
;
return
pOldSubNode
;
}
//-----------------------------------------------------------------------------
OSQLParseNode
*
OSQLParseNode
::
replace
(
OSQLParseNode
*
pOldSubNode
,
OSQLParseNode
*
pNewSubNode
)
{
...
...
@@ -2788,11 +2752,6 @@ void OSQLParseNodesContainer::erase(OSQLParseNode* _pNode)
}
}
// -----------------------------------------------------------------------------
bool
OSQLParseNodesContainer
::
empty
()
const
{
return
m_aNodes
.
empty
();
}
// -----------------------------------------------------------------------------
void
OSQLParseNodesContainer
::
clear
()
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
...
...
unusedcode.easy
Dosyayı görüntüle @
10e92b82
...
...
@@ -772,9 +772,6 @@ comphelper::findProperty(com::sun::star::beans::Property&, com::sun::star::uno::
connectivity::OKeyValue::OKeyValue()
connectivity::ORowSetValue::setFromDouble(double const&, int)
connectivity::OSQLInternalNode::OSQLInternalNode(unsigned short const*, connectivity::SQLNodeType, unsigned int)
connectivity::OSQLParseNode::remove(connectivity::OSQLParseNode*)
connectivity::OSQLParseNode::replaceAt(unsigned int, connectivity::OSQLParseNode*)
connectivity::OSQLParseNodesContainer::empty() const
connectivity::OSQLScanner::GetCurrentRule() const
connectivity::OSortIndex::GetValue(int) const
connectivity::SQLError::getSQLState(int) const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment