|
12 | 12 | import java.util.List;
|
13 | 13 | import java.util.Map;
|
14 | 14 |
|
15 |
| -import org.eclipse.core.runtime.IPath; |
16 | 15 | import org.eclipse.core.runtime.IStatus;
|
17 |
| -import org.eclipse.core.runtime.Path; |
18 | 16 | import org.eclipse.core.runtime.Status;
|
19 | 17 |
|
20 | 18 | import io.sloeber.autoBuild.helpers.api.KeyValueTree;
|
@@ -119,43 +117,7 @@ public String getNiceNameFromID(String myBoardID) {
|
119 | 117 | return myData.getValue(myBoardID + DOT + NAME);
|
120 | 118 | }
|
121 | 119 |
|
122 |
| - /* |
123 |
| - * Returns the architecture based on the platform file name Caters for the |
124 |
| - * packages (with version number and for the old way if the boards file does not |
125 |
| - * exists returns avr |
126 |
| - */ |
127 |
| - public String getArchitecture() { |
128 |
| - |
129 |
| - IPath platformFile = new Path(this.mLoadedTxtFile.toString().trim()); |
130 |
| - String architecture = platformFile.removeLastSegments(1).lastSegment(); |
131 |
| - if (architecture == null) {// for error conditions |
132 |
| - architecture = AVR; |
133 |
| - } |
134 |
| - if (architecture.contains(DOT)) { // This is a version number so |
135 |
| - // package |
136 |
| - architecture = platformFile.removeLastSegments(2).lastSegment(); |
137 |
| - } |
138 |
| - return architecture; |
139 |
| - } |
140 | 120 |
|
141 |
| - /* |
142 |
| - * Returns the architecture based on the platform file name Caters for the |
143 |
| - * packages (with version number and for the old way if the boards file does not |
144 |
| - * exists returns avr |
145 |
| - */ |
146 |
| - public String getVendor() { |
147 |
| - |
148 |
| - IPath platformFile = new Path(this.mLoadedTxtFile.toString().trim()); |
149 |
| - String vendor = platformFile.removeLastSegments(2).lastSegment(); |
150 |
| - if (vendor == null) {// for error conditions |
151 |
| - vendor = "NotFound"; //$NON-NLS-1$ |
152 |
| - } |
153 |
| - if (vendor.contains(DOT)) { // This is a version number so |
154 |
| - // package |
155 |
| - vendor = platformFile.removeLastSegments(3).lastSegment(); |
156 |
| - } |
157 |
| - return vendor; |
158 |
| - } |
159 | 121 |
|
160 | 122 | /**
|
161 | 123 | * Given a nice name look for the ID The assumption is that the txt file
|
|
0 commit comments