Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0 Minor cleanup of unused AbstractDataType DuplicateNameException use

ghidra1f080fb70a1ea
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/AbstractDataType.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/AbstractDataType.java
index 12eaff6b5f..c1635936a0 100644
--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/AbstractDataType.java
+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/AbstractDataType.java
@@ -63,9 +63,6 @@ public abstract class AbstractDataType implements DataType {
return categoryPath;
}
- /**
- * @see ghidra.program.model.data.DataType#getDataTypeManager()
- */
@Override
public final DataTypeManager getDataTypeManager() {
return dataMgr;
@@ -108,7 +105,7 @@ public abstract class AbstractDataType implements DataType {
}
@Override
- public String getPathName() {
+ public final String getPathName() {
return getDataTypePath().getPath();
}
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/DataTypeImpl.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/DataTypeImpl.java
index 59a7ef95a2..b3f7caff5f 100644
--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/DataTypeImpl.java
+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/DataTypeImpl.java
@@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -88,11 +88,6 @@ public abstract class DataTypeImpl extends AbstractDataType {
}
}
- @Override
- public String getPathName() {
- return getDataTypePath().getPath();
- }
-
/**
* Return the aligned-length for a fixed length datatype. This is intended to produce a
* result consistent with the C/C++ {@code sizeof(type)} operation. Use of this method