ctf: remove deprecated code from CTFStreamInputPacketReader.java
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 31 Mar 2015 20:58:07 +0000 (16:58 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 1 Apr 2015 19:32:26 +0000 (15:32 -0400)
Change-Id: I39b8b1c1ba614cf5b21c391972c14442e38d3f32
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/44954
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/ctf/core/trace/CTFStreamInputPacketReader.java

index 3dd76d2d56d606b13364647548d04c1906e1e5ba..483cae8b402f7655c1a448d8ec517e77ee5a5523 100644 (file)
@@ -139,24 +139,6 @@ public class CTFStreamInputPacketReader implements IDefinitionScope, AutoCloseab
         return fStreamEventContextDecl.createDefinition(fStreamInputReader.getStreamInput(), ILexicalScope.STREAM_EVENT_CONTEXT, input);
     }
 
-    /**
-     * Get the stream context defintiion
-     *
-     * @param input
-     *            the bitbuffer to read from
-     * @return an context definition, can be null
-     * @throws CTFReaderException
-     *             out of bounds exception or such
-     * @deprecated it was not used
-     */
-    @Deprecated
-    public StructDefinition getStreamEventHeaderDefinition(@NonNull BitBuffer input) throws CTFReaderException {
-        if (!(fStreamEventHeaderDecl instanceof StructDeclaration)) {
-            throw new IllegalStateException("Definition is not a struct definition, this is a deprecated method that doesn't work so well, stop using it."); //$NON-NLS-1$
-        }
-        return ((StructDeclaration) fStreamEventHeaderDecl).createDefinition(this, ILexicalScope.STREAM_EVENT_HEADER, input);
-    }
-
     /**
      * Get the packet context defintiion
      *
@@ -508,17 +490,6 @@ public class CTFStreamInputPacketReader implements IDefinitionScope, AutoCloseab
         return null;
     }
 
-    /**
-     * Get stream event header
-     *
-     * @return the stream event header
-     * @deprecated use
-     *             {@link CTFStreamInputPacketReader#getStreamEventHeaderDefinition()}
-     */
-    @Deprecated
-    public StructDefinition getCurrentStreamEventHeader() {
-        return (StructDefinition) ((fCurrentStreamEventHeaderDef instanceof StructDefinition) ? fCurrentStreamEventHeaderDef : null);
-    }
 
     /**
      * Get stream event header
This page took 0.026369 seconds and 5 git commands to generate.