Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2014-04-09 02:07:36 -0400
committerAlexander Kurtakov2014-04-09 05:43:22 -0400
commitaa6a95cd7572c350d67e3a38bd912e08b9772ce9 (patch)
treed67a8d4024c56947e1ffe641493779e53943450b /libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx
parent4f6658acd860ffe60d5229d7714fbe0328c9ce87 (diff)
downloadorg.eclipse.linuxtools-aa6a95cd7572c350d67e3a38bd912e08b9772ce9.tar.gz
org.eclipse.linuxtools-aa6a95cd7572c350d67e3a38bd912e08b9772ce9.tar.xz
org.eclipse.linuxtools-aa6a95cd7572c350d67e3a38bd912e08b9772ce9.zip
libhover: Remove unused code.
Delete unused methods, make others private and other small cleanups. Change-Id: Iaa838a0688471cedf08126b124102bc5cbaa1d4a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/24683 Tested-by: Hudson CI
Diffstat (limited to 'libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx')
-rw-r--r--libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java b/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java
index 16447010da..d30752ba76 100644
--- a/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java
+++ b/libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx/src/org/eclipse/linuxtools/internal/cdt/libhover/libstdcxx/DoxygenCPPInfo.java
@@ -48,10 +48,6 @@ public class DoxygenCPPInfo {
this.document = document;
}
- public Document getDocument() {
- return document;
- }
-
private String[] getTypedefTypes(String def) {
String[] result = null;
if (def.startsWith("typedef ")) { //$NON-NLS-1$
@@ -105,7 +101,7 @@ public class DoxygenCPPInfo {
return d.toString();
}
- public ClassInfo getClassInfo(String className) {
+ private ClassInfo getClassInfo(String className) {
String typedefName = className.replaceAll("<.*>", "<>"); //$NON-NLS-1$ //$NON-NLS-2$
TypedefInfo typedef = cppInfo.typedefs.get(typedefName);
if (typedef != null) {
@@ -136,11 +132,11 @@ public class DoxygenCPPInfo {
return cppInfo.classes.get(className);
}
- public void buildDoxygenCPPInfo(String fileName) {
+ private void buildDoxygenCPPInfo(String fileName) {
try {
// Create a hash table of all the class nodes mapped by class name. Trim any template info
// for the class name key value.
- NodeList nl = getDocument().getElementsByTagName("compounddef"); //$NON-NLS-1$
+ NodeList nl = document.getElementsByTagName("compounddef"); //$NON-NLS-1$
for (int i = 0; i < nl.getLength(); ++i) {
Node n = nl.item(i);
NamedNodeMap attrs = n.getAttributes();
@@ -347,7 +343,7 @@ public class DoxygenCPPInfo {
}
}
// Create a hash table of all the typedefs. Keep any template info.
- nl = getDocument().getElementsByTagName("memberdef"); //$NON-NLS-1$
+ nl = document.getElementsByTagName("memberdef"); //$NON-NLS-1$
for (int i = 0; i < nl.getLength(); ++i) {
Node n = nl.item(i);
NamedNodeMap attrs = n.getAttributes();
@@ -460,7 +456,7 @@ public class DoxygenCPPInfo {
return desc;
}
- public String[] getTemplateParms(Node classNode) {
+ private String[] getTemplateParms(Node classNode) {
Node n = null;
ArrayList<String> templateArray = new ArrayList<>();
NodeList list = classNode.getChildNodes();

Back to the top