GP-0 Minor cleanup of unused AbstractDataType DuplicateNameException use

This commit is contained in:
ghidra1 2025-05-21 10:06:45 -04:00
parent aa8bffe707
commit f080fb70a1
2 changed files with 3 additions and 11 deletions

View file

@ -63,9 +63,6 @@ public abstract class AbstractDataType implements DataType {
return categoryPath; return categoryPath;
} }
/**
* @see ghidra.program.model.data.DataType#getDataTypeManager()
*/
@Override @Override
public final DataTypeManager getDataTypeManager() { public final DataTypeManager getDataTypeManager() {
return dataMgr; return dataMgr;
@ -108,7 +105,7 @@ public abstract class AbstractDataType implements DataType {
} }
@Override @Override
public String getPathName() { public final String getPathName() {
return getDataTypePath().getPath(); return getDataTypePath().getPath();
} }

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 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 * 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 * result consistent with the C/C++ {@code sizeof(type)} operation. Use of this method