summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-24 09:29:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-24 12:12:22 +0000
commit9afdc72df60811435587b85ef333ee29d1d3ce15 (patch)
tree37749685c4c2e00cfe185159c4620f11b754414b /idlc
parentca949408b89c990edb6321d59db9eed6d29d21a7 (diff)
callcatcher: update unused code
Change-Id: I48990c044e4583e835f3e995527ba423e8c459fb
Diffstat (limited to 'idlc')
-rw-r--r--idlc/inc/idlc/astdeclaration.hxx1
-rw-r--r--idlc/source/astdeclaration.cxx33
2 files changed, 0 insertions, 34 deletions
diff --git a/idlc/inc/idlc/astdeclaration.hxx b/idlc/inc/idlc/astdeclaration.hxx
index 3f776625518a..0906a5bd7b22 100644
--- a/idlc/inc/idlc/astdeclaration.hxx
+++ b/idlc/inc/idlc/astdeclaration.hxx
@@ -65,7 +65,6 @@ public:
virtual ~AstDeclaration();
// Data access
- void setName(const OString& name);
const OString& getLocalName() const
{ return m_localName; }
const OString& getScopedName() const
diff --git a/idlc/source/astdeclaration.cxx b/idlc/source/astdeclaration.cxx
index 822a26bd6e89..4840eca74f6a 100644
--- a/idlc/source/astdeclaration.cxx
+++ b/idlc/source/astdeclaration.cxx
@@ -98,39 +98,6 @@ void AstDeclaration::setPredefined(bool bPredefined)
}
}
-void AstDeclaration::setName(const OString& name)
-{
- m_scopedName = name;
- sal_Int32 nIndex = name.lastIndexOf( ':' );
- m_localName = name.copy( nIndex+1 );
-
-// Huh ? There is always at least one token
-
-// sal_Int32 count = name.getTokenCount(':');
-
-// if ( count > 0 )
-// {
-// m_localName = name.getToken(count-1, ':');
-// m_scopedName = name;
-// } else if ( m_pScope )
-// {
-// m_localName = name;
-// AstDeclaration* pDecl = scopeAsDecl(m_pScope);
-// if (pDecl)
-// {
-// m_scopedName = pDecl->getScopedName();
-// if (m_scopedName.getLength() > 0)
-// m_scopedName += sGlobal;
-// m_scopedName += m_localName;
-// }
-// } else
-// {
-// m_localName = name;
-// m_scopedName = name;
-// }
- m_fullName = convertName(m_scopedName);
-}
-
bool AstDeclaration::isType() const {
switch (m_nodeType) {
case NT_interface: