diff --git a/src/cli/java/org/commcare/util/screen/EntityScreen.java b/src/cli/java/org/commcare/util/screen/EntityScreen.java index a4333c7666..b0c09603aa 100755 --- a/src/cli/java/org/commcare/util/screen/EntityScreen.java +++ b/src/cli/java/org/commcare/util/screen/EntityScreen.java @@ -178,10 +178,6 @@ public boolean initReferences(SessionWrapper session) throws CommCareSessionExce referenceMap.put(getReturnValueFromSelection(reference, needed, evalContext), reference); } - // for now override 'here()' with the coords of Sao Paulo, eventually allow dynamic - // setting - evalContext.addFunctionHandler(new ScreenUtils.HereDummyFunc(-23.56, -46.66)); - if (shouldAutoSelect()) { if (!this.setCurrentScreenToDetail()) { readyToSkip = true; diff --git a/src/cli/java/org/commcare/util/screen/ScreenUtils.java b/src/cli/java/org/commcare/util/screen/ScreenUtils.java index fe23bb1b77..06e212b525 100644 --- a/src/cli/java/org/commcare/util/screen/ScreenUtils.java +++ b/src/cli/java/org/commcare/util/screen/ScreenUtils.java @@ -81,36 +81,4 @@ public static String getAppTitle() { return "CommCare"; } } - - public static class HereDummyFunc implements IFunctionHandler { - private final double lat; - private final double lon; - - public HereDummyFunc(double lat, double lon) { - this.lat = lat; - this.lon = lon; - } - - @Override - public String getName() { - return "here"; - } - - @Override - public Vector getPrototypes() { - Vector p = new Vector<>(); - p.addElement(new Class[0]); - return p; - } - - @Override - public boolean rawArgs() { - return false; - } - - @Override - public Object eval(Object[] args, EvaluationContext ec) { - return new GeoPointData(new double[]{lat, lon, 0, 10}).getDisplayText(); - } - } }