mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Removes superfluous method PDOMName.resolveBinding().
This commit is contained in:
parent
63778dc01c
commit
dccac113b7
2 changed files with 1 additions and 11 deletions
|
@ -151,7 +151,7 @@ public class ClassTests extends PDOMTestBase {
|
|||
loc = refs[0].getFileLocation();
|
||||
assertEquals(offset("constructor.cpp","number(num)"), loc.getNodeOffset()); //character offset
|
||||
|
||||
assertEquals(bindings[0], ((PDOMName)refs[0]).resolveBinding());
|
||||
assertEquals(bindings[0], ((PDOMName)refs[0]).getBinding());
|
||||
}
|
||||
|
||||
public void testAbsenceOfDefaultConstructorWhenExplicitNonDefaultPresentA() throws Exception {
|
||||
|
|
|
@ -173,16 +173,6 @@ public class PDOMName implements IIndexFragmentName, IASTFileLocation {
|
|||
setNameField(FILE_NEXT_OFFSET, name);
|
||||
}
|
||||
|
||||
public PDOMBinding resolveBinding() {
|
||||
try {
|
||||
int bindingRecord = pdom.getDB().getInt(record + BINDING_REC_OFFSET);
|
||||
return pdom.getBinding(bindingRecord);
|
||||
} catch (CoreException e) {
|
||||
CCorePlugin.log(e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public char[] toCharArray() {
|
||||
try {
|
||||
Database db = pdom.getDB();
|
||||
|
|
Loading…
Add table
Reference in a new issue