File tree Expand file tree Collapse file tree 3 files changed +1
-15
lines changed
src/main/java/org/openstreetmap/josm/plugins/mapillary/oauth Expand file tree Collapse file tree 3 files changed +1
-15
lines changed Original file line number Diff line number Diff line change 25
25
</target >
26
26
<fileset id =" plugin.requires.jars" dir =" ${ plugin.dist.dir } " >
27
27
<include name =" apache-commons.jar" />
28
- <include name =" apache-http.jar" />
29
28
</fileset >
30
29
<target name =" mapillary_secrets" >
31
30
<property environment =" env" />
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ plugin.main.version=18291
12
12
# If not, choose the next higher number that is available, or the gradle build will break.
13
13
plugin.compile.version =18531
14
14
# The datepicker plugin is currently in the source tree. TODO fix
15
- plugin.requires =apache-commons;apache-http
15
+ plugin.requires =apache-commons
16
16
17
17
# Character encoding of Gradle files
18
18
systemProp.file.encoding =utf-8
Original file line number Diff line number Diff line change 24
24
import javax .json .JsonStructure ;
25
25
import javax .swing .JOptionPane ;
26
26
27
- import org .apache .http .client .methods .HttpEntityEnclosingRequestBase ;
28
27
import org .openstreetmap .josm .gui .Notification ;
29
28
import org .openstreetmap .josm .gui .util .GuiHelper ;
30
29
import org .openstreetmap .josm .io .CachedFile ;
@@ -161,18 +160,6 @@ public static HttpClient addAuthenticationHeader(HttpClient client) {
161
160
return client .setHeader (AUTHORIZATION , getAuthorizationToken ());
162
161
}
163
162
164
- /**
165
- * Returns a HttpEntity with an authorization header for use when making user
166
- * specific API calls
167
- *
168
- * @param httpEntity The HttpEntity to add authentication headers to
169
- * @return The HttpEntity for easy chaining
170
- */
171
- public static HttpEntityEnclosingRequestBase addAuthenticationHeader (HttpEntityEnclosingRequestBase httpEntity ) {
172
- httpEntity .addHeader (AUTHORIZATION , getAuthorizationToken ());
173
- return httpEntity ;
174
- }
175
-
176
163
/**
177
164
* Get an authorization token
178
165
*
You can’t perform that action at this time.
0 commit comments