Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319463

Summary: Remove dead code
Product: [Eclipse Project] Platform Reporter: Thomas Schindl <tom.schindl>
Component: UIAssignee: Lars Vogel <Lars.Vogel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, emoffatt, john.arthorne, Lars.Vogel, pwebster
Version: 4.2.1Flags: pwebster: review+
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 420779    
Attachments:
Description Flags
patch none

Description Thomas Schindl CLA 2010-07-10 11:44:00 EDT
Created attachment 173938 [details]
patch

The classes attached to this patch are not used and I think we can remove them
Comment 1 Paul Webster CLA 2010-07-12 07:49:45 EDT
+1, but we should let Eric comment on the model stuff.

PW
Comment 2 Boris Bokowski CLA 2010-07-12 15:58:22 EDT
+1 from me too. Eric?
Comment 3 Thomas Schindl CLA 2010-07-20 03:15:39 EDT
Though I have already 2 1+ I want to reiterate because we are now in rc3 and I'm not sure you still vote +1. Eric was missing anyway.
Comment 4 Boris Bokowski CLA 2010-07-20 16:42:41 EDT
I would prefer that we do this after 4.0.
Comment 5 Lars Vogel CLA 2012-10-28 15:36:33 EDT
As was as I can see, the code is still unused. Would be nice to get it removed.
Comment 6 Eric Moffatt CLA 2012-10-29 13:58:58 EDT
Looks OK to me...does anyone know whether the patch is still good or does it need to be upgraded ?
Comment 7 Lars Vogel CLA 2012-10-30 18:49:08 EDT
No, does not apply anymore. 

Just delete the ModelService.java, ModeledContentProvider, ModeledLabelProvider classes.

Looks to me RunAway is already deleted.
Comment 8 Eric Moffatt CLA 2012-10-31 15:56:36 EDT
Thanks Lars, will do...
Comment 9 Lars Vogel CLA 2014-02-05 06:58:41 EST
https://git.eclipse.org/r/21559
Comment 11 Paul Webster CLA 2014-02-05 09:27:56 EST
I get errors from this commit:

Description	Resource	Path	Location	Type
The major version should be incremented in version 1.1.0, since API breakage occurred since version 1.0.0	MANIFEST.MF	/org.eclipse.e4.ui.workbench/META-INF	line 4	Version Numbering Problem
The type org.eclipse.e4.ui.workbench.modeling.ModelService has been removed from org.eclipse.e4.ui.workbench_1.1.0	MANIFEST.MF	/org.eclipse.e4.ui.workbench/META-INF	line 1	Compatibility Problem

Since the class itself said @noreference you should probably just add a commented api filter and put the bug # - title in it.

PW
Comment 12 Lars Vogel CLA 2014-02-05 10:46:28 EST
Thanks Paul, will do so. Just need to figure out how to add a commented API filter.
Comment 13 Paul Webster CLA 2014-02-05 10:56:21 EST
You should have an API baseline set in PDE prefs (4.4 baseline is against 4.3.0) ... then a quick-fix on the errors creates the filters.

PW
Comment 14 Lars Vogel CLA 2014-02-05 11:43:52 EST
(In reply to Paul Webster from comment #13)
> You should have an API baseline set in PDE prefs (4.4 baseline is against
> 4.3.0) ... then a quick-fix on the errors creates the filters.
> 
> PW

Thanks. This is new to me, can you check the Gerrit review?

https://git.eclipse.org/r/21572

The tooling seems to have removed a block in the API tooling. I find it hard to tell if that is correct or not.