Skip to content

Commit 6540c10

Browse files
committed
unused function
Introduced by mistake while implementing CDRIVER-2190.
1 parent 056a0f9 commit 6540c10

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/mongoc/mongoc-uri.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -180,35 +180,6 @@ scan_to_unichar (const char *str,
180180
}
181181

182182

183-
/*
184-
*--------------------------------------------------------------------------
185-
*
186-
* last_slash --
187-
*
188-
* Scans 'str' and returns a pointer to the final '/' character, or
189-
* NULL if there is no '/'.
190-
*
191-
*--------------------------------------------------------------------------
192-
*/
193-
194-
static const char *
195-
last_unichar (const char *haystack, bson_unichar_t needle)
196-
{
197-
bson_unichar_t c;
198-
const char *iter;
199-
const char *last = NULL;
200-
201-
for (iter = haystack; iter && *iter && (c = bson_utf8_get_char (iter));
202-
iter = bson_utf8_next_char (iter)) {
203-
if (c == needle) {
204-
last = iter;
205-
}
206-
}
207-
208-
return last;
209-
}
210-
211-
212183
/*
213184
*--------------------------------------------------------------------------
214185
*

0 commit comments

Comments
 (0)