ObjFW  Check-in [ee849cd073]

Overview
Comment:Remove useless rethrows.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ee849cd0737d9e253cabff2e62d576923ed61abccf53f91e9b2442c4f98bfb9b
User & Date: js on 2013-06-28 18:44:29
Other Links: manifest | tags
Context
2013-06-28
18:48
OFHTTPClient: Only retry on ECONNRESET or EPIPE. check-in: e0182a3e55 user: js tags: trunk
18:44
Remove useless rethrows. check-in: ee849cd073 user: js tags: trunk
18:43
Include errno in headers for exceptions using it. check-in: 3d6917fe0b user: js tags: trunk
Changes

Modified src/OFArray_adjacent.m from [213aaaa47c] to [b74a7d11a1].

209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
- (id*)objects
{
	return [_array items];
}

- (id)objectAtIndex: (size_t)index
{
	id ret;

	@try {
		ret = *((id*)[_array itemAtIndex: index]);
	} @catch (OFOutOfRangeException *e) {
		@throw [OFOutOfRangeException exception];
	}

	return ret;
}

- (id)objectAtIndexedSubscript: (size_t)index
{
	id ret;

	@try {
		ret = *((id*)[_array itemAtIndex: index]);
	} @catch (OFOutOfRangeException *e) {
		@throw [OFOutOfRangeException exception];
	}

	return ret;
}

- (void)getObjects: (id*)buffer
	   inRange: (of_range_t)range
{
	id *objects = [_array items];
	size_t i, count = [_array count];







<
<
<
|
<
<
<
<
<




<
<
<
|
<
<
<
<
<







209
210
211
212
213
214
215



216





217
218
219
220



221





222
223
224
225
226
227
228
- (id*)objects
{
	return [_array items];
}

- (id)objectAtIndex: (size_t)index
{



	return *((id*)[_array itemAtIndex: index]);





}

- (id)objectAtIndexedSubscript: (size_t)index
{



	return *((id*)[_array itemAtIndex: index]);





}

- (void)getObjects: (id*)buffer
	   inRange: (of_range_t)range
{
	id *objects = [_array items];
	size_t i, count = [_array count];