Skip to content

Commit d1d0128

Browse files
[DEL] XQuery, map:keys-where. qtspecs#2572
1 parent 84de4f3 commit d1d0128

3 files changed

Lines changed: 0 additions & 57 deletions

File tree

basex-core/src/main/java/org/basex/query/func/Function.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -847,10 +847,6 @@ public enum Function implements AFunction {
847847
_MAP_KEYS(MapKeys::new, "keys(map)",
848848
params(MAP_O), ANY_ATOMIC_TYPE_ZM, MAP_URI),
849849
/** XQuery function. */
850-
_MAP_KEYS_WHERE(MapKeysWhere::new, "keys-where(map,predicate)",
851-
params(MAP_O, FuncType.get(BOOLEAN_ZO, ANY_ATOMIC_TYPE_O, ITEM_ZM).seqType()),
852-
ANY_ATOMIC_TYPE_ZM, MAP_URI),
853-
/** XQuery function. */
854850
_MAP_MERGE(MapMerge::new, "merge(maps[,options])",
855851
params(MAP_ZM, MAP_ZO), MAP_O, MAP_URI),
856852
/** XQuery function. */

basex-core/src/main/java/org/basex/query/func/map/MapKeysWhere.java

Lines changed: 0 additions & 42 deletions
This file was deleted.

basex-core/src/test/java/org/basex/query/func/MapModuleTest.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,6 @@ record = "declare record local:x(x as xs:integer);";
268268
_MAP_GET.args(" $map", " $k"), "2\n3\n4");
269269
}
270270

271-
/** Test method. */
272-
@Test public void keysWhere() {
273-
final Function func = _MAP_KEYS_WHERE;
274-
query(func.args(" map:merge((1 to 9) ! map:entry(., string()))",
275-
" fn($k, $v) { $v < '2' }"), 1);
276-
query(func.args(" map:build(1 to 9, value := string#1)",
277-
" fn($k, $v) { $v < '2' }"), 1);
278-
query(func.args(" map:build(1 to 9, value := string#1)",
279-
" fn($k, $v) { $k < 2 }"), 1);
280-
}
281-
282271
/** Test method. */
283272
@Test public void merge() {
284273
// no entry

0 commit comments

Comments
 (0)