Skip to content

Commit 5e08068

Browse files
committed
Remove deprecated API in o.e.tc.ctf.core
[Removed] deprecated API in o.e.tc.ctf.core Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
1 parent 3cfe5fc commit 5e08068

2 files changed

Lines changed: 1 addition & 96 deletions

File tree

ctf/org.eclipse.tracecompass.ctf.core/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %Bundle-Name
44
Bundle-Vendor: %Bundle-Vendor
5-
Bundle-Version: 4.7.0.qualifier
5+
Bundle-Version: 5.0.0.qualifier
66
Bundle-Localization: plugin
77
Bundle-SymbolicName: org.eclipse.tracecompass.ctf.core;singleton:=true
88
Bundle-ActivationPolicy: lazy

ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/ctf/core/event/types/IntegerDeclaration.java

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import java.math.BigInteger;
2222
import java.nio.ByteOrder;
23-
2423
import java.util.HashMap;
2524
import java.util.List;
2625
import java.util.Map;
@@ -139,100 +138,6 @@ public final class IntegerDeclaration extends Declaration implements ISimpleData
139138
// Constructors
140139
// ------------------------------------------------------------------------
141140

142-
/**
143-
* Factory, some common types cached
144-
*
145-
* @deprecated use
146-
* {@link #createDeclaration(int, boolean, int, ByteOrder, Encoding, String, long, String)}
147-
* instead
148-
*
149-
* @param len
150-
* The length in bits
151-
* @param signed
152-
* Is the integer signed? false == unsigned
153-
* @param base
154-
* The base (10-16 are most common)
155-
* @param byteOrder
156-
* Big-endian little-endian or other
157-
* @param encoding
158-
* ascii, utf8 or none.
159-
* @param clock
160-
* The clock path, can be null
161-
* @param alignment
162-
* The minimum alignment. Should be >= 1
163-
* @return the integer declaration
164-
* @deprecated use
165-
* {@link #createDeclaration(int, boolean, int, ByteOrder, Encoding, String, long, String)}
166-
*/
167-
@Deprecated
168-
public static IntegerDeclaration createDeclaration(int len, boolean signed, int base,
169-
@Nullable ByteOrder byteOrder, Encoding encoding, String clock, long alignment) {
170-
if (encoding.equals(Encoding.NONE) && (clock.equals("")) && base == BASE_10 && byteOrder != null) { //$NON-NLS-1$
171-
if (alignment == BYTE_ALIGN) {
172-
switch (len) {
173-
case SIZE_8:
174-
return signed ? INT_8_DECL : UINT_8_DECL;
175-
case SIZE_16:
176-
if (!signed) {
177-
if (isBigEndian(byteOrder)) {
178-
return UINT_16B_DECL;
179-
}
180-
return UINT_16L_DECL;
181-
}
182-
break;
183-
case SIZE_32:
184-
if (signed) {
185-
if (isBigEndian(byteOrder)) {
186-
return INT_32B_DECL;
187-
}
188-
return INT_32L_DECL;
189-
}
190-
if (isBigEndian(byteOrder)) {
191-
return UINT_32B_DECL;
192-
}
193-
return UINT_32L_DECL;
194-
case SIZE_64:
195-
if (signed) {
196-
if (isBigEndian(byteOrder)) {
197-
return INT_64B_DECL;
198-
}
199-
return INT_64L_DECL;
200-
}
201-
if (isBigEndian(byteOrder)) {
202-
return UINT_64B_DECL;
203-
}
204-
return UINT_64L_DECL;
205-
206-
default:
207-
208-
}
209-
210-
} else if (alignment == 1) {
211-
switch (len) {
212-
case SIZE_5:
213-
if (!signed) {
214-
if (isBigEndian(byteOrder)) {
215-
return UINT_5B_DECL;
216-
}
217-
return UINT_5L_DECL;
218-
}
219-
break;
220-
case SIZE_27:
221-
if (!signed) {
222-
if (isBigEndian(byteOrder)) {
223-
return UINT_27B_DECL;
224-
}
225-
return UINT_27L_DECL;
226-
}
227-
break;
228-
default:
229-
break;
230-
}
231-
}
232-
}
233-
return new IntegerDeclaration(len, signed, base, byteOrder, encoding, clock, alignment);
234-
}
235-
236141
/**
237142
* Alternate create method for CTF2 integers which have roles
238143
*

0 commit comments

Comments
 (0)