ObjFW  Check-in [6ebaa2d2f5]

Overview
Comment:Remove unused variables
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6ebaa2d2f5decf26d81b7f8666be9855658487b76b08ecb37d02d04939873133
User & Date: js on 2023-08-25 14:19:43
Other Links: manifest | tags
Context
2023-08-25
17:02
Fix build on Windows check-in: 5f897cae6d user: js tags: trunk
14:19
Remove unused variables check-in: 6ebaa2d2f5 user: js tags: trunk
13:20
Add reserved ivar for ABI stability on AmigaOS check-in: e3e3a88363 user: js tags: trunk
Changes

Modified src/OFHTTPClient.m from [0a2253ded6] to [e9090ece5a].

383
384
385
386
387
388
389
390
391

392
393
394
395
396
397
398
399
400
401
402
403
404
405
383
384
385
386
387
388
389


390







391
392
393
394
395
396
397







-
-
+
-
-
-
-
-
-
-








			/*
			 * 303 means the request should be converted to a GET
			 * request before redirection. This also means stripping
			 * the entity of the request.
			 */
			if (_status == 303) {
				OFEnumerator *keyEnumerator, *objectEnumerator;
				OFString *key, *object;
				for (OFString *key in headers)

				keyEnumerator = [headers keyEnumerator];
				objectEnumerator = [headers objectEnumerator];
				while ((key = [keyEnumerator nextObject]) !=
				    nil &&
				    (object = [objectEnumerator nextObject]) !=
				    nil)
					if ([key hasPrefix: @"Content-"] ||
					    [key hasPrefix: @"Transfer-"])
						[newHeaders
						    removeObjectForKey: key];

				newRequest.method = OFHTTPRequestMethodGet;
			}

Modified src/runtime/arc.m from [e761109ae6] to [c295471472].

184
185
186
187
188
189
190
191
192
193
194
195
196
197
198

199
200
201
202
203
204
205
206
184
185
186
187
188
189
190

191
192
193
194
195
196

197

198
199
200
201
202
203
204







-






-
+
-







	return value;
}

id
objc_loadWeakRetained(id *object)
{
	id value = nil;
	struct WeakRef *ref;

#ifdef OF_HAVE_THREADS
	if (OFSpinlockLock(&spinlock) != 0)
		OBJC_ERROR("Failed to lock spinlock!");
#endif

	if (*object != nil &&
	if (*object != nil && objc_hashtable_get(hashtable, *object) != NULL)
	    (ref = objc_hashtable_get(hashtable, *object)) != NULL)
		value = *object;

#ifdef OF_HAVE_THREADS
	if (OFSpinlockUnlock(&spinlock) != 0)
		OBJC_ERROR("Failed to unlock spinlock!");
#endif