Skip to content

Commit

Permalink
Remove NMT code
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed Sep 22, 2024
1 parent c17106f commit fa50bd6
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 493 deletions.
5 changes: 1 addition & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,7 @@ libbibledit_a_SOURCES = \
rss/feed.cpp \
microtar/microtar.c \
miniz/miniz.c \
nmt/index.cpp \
nmt/logic.cpp \
tbsx/text.cpp \
tbsx/text.cpp \
read/index.cpp \
read/load.cpp \
read/verse.cpp \
Expand Down Expand Up @@ -639,7 +637,6 @@ unittest_SOURCES = \
unittests/javascript.cpp \
unittests/french.cpp \
unittests/merge.cpp \
unittests/nmt.cpp \
unittests/html2format.cpp \
unittests/studylight.cpp \
unittests/gbs.cpp \
Expand Down
53 changes: 13 additions & 40 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ am_libbibledit_a_OBJECTS = library/bibledit.$(OBJEXT) \
sqlite/sqlite3.$(OBJEXT) ldap/logic.$(OBJEXT) \
quill/logic.$(OBJEXT) rss/logic.$(OBJEXT) rss/feed.$(OBJEXT) \
microtar/microtar.$(OBJEXT) miniz/miniz.$(OBJEXT) \
nmt/index.$(OBJEXT) nmt/logic.$(OBJEXT) tbsx/text.$(OBJEXT) \
read/index.$(OBJEXT) read/load.$(OBJEXT) read/verse.$(OBJEXT) \
resource/divider.$(OBJEXT) session/confirm.$(OBJEXT) \
sources/abbott-smith.$(OBJEXT) database/abbottsmith.$(OBJEXT) \
tbsx/text.$(OBJEXT) read/index.$(OBJEXT) read/load.$(OBJEXT) \
read/verse.$(OBJEXT) resource/divider.$(OBJEXT) \
session/confirm.$(OBJEXT) sources/abbott-smith.$(OBJEXT) \
database/abbottsmith.$(OBJEXT) \
resource/comparative9edit.$(OBJEXT) \
resource/comparative1edit.$(OBJEXT) \
resource/translated9edit.$(OBJEXT) \
Expand Down Expand Up @@ -471,10 +471,9 @@ am_unittest_OBJECTS = unittests/unittest.$(OBJEXT) \
unittests/privileges.$(OBJEXT) unittests/statistics.$(OBJEXT) \
unittests/webview.$(OBJEXT) unittests/javascript.$(OBJEXT) \
unittests/french.$(OBJEXT) unittests/merge.$(OBJEXT) \
unittests/nmt.$(OBJEXT) unittests/html2format.$(OBJEXT) \
unittests/studylight.$(OBJEXT) unittests/gbs.$(OBJEXT) \
unittests/bibleimages.$(OBJEXT) unittests/image.$(OBJEXT) \
unittests/easyenglishbible.$(OBJEXT)
unittests/html2format.$(OBJEXT) unittests/studylight.$(OBJEXT) \
unittests/gbs.$(OBJEXT) unittests/bibleimages.$(OBJEXT) \
unittests/image.$(OBJEXT) unittests/easyenglishbible.$(OBJEXT)
unittest_OBJECTS = $(am_unittest_OBJECTS)
unittest_DEPENDENCIES = libbibledit.a
AM_V_P = $(am__v_P_@AM_V@)
Expand Down Expand Up @@ -713,8 +712,7 @@ am__depfiles_remade = access/$(DEPDIR)/bible.Po \
mimetic098/rfc822/$(DEPDIR)/messageid.Po \
miniz/$(DEPDIR)/miniz.Po navigation/$(DEPDIR)/paratext.Po \
navigation/$(DEPDIR)/passage.Po navigation/$(DEPDIR)/poll.Po \
navigation/$(DEPDIR)/update.Po nmt/$(DEPDIR)/index.Po \
nmt/$(DEPDIR)/logic.Po notes/$(DEPDIR)/actions.Po \
navigation/$(DEPDIR)/update.Po notes/$(DEPDIR)/actions.Po \
notes/$(DEPDIR)/assign-1.Po notes/$(DEPDIR)/assign-n.Po \
notes/$(DEPDIR)/bb-1.Po notes/$(DEPDIR)/bb-n.Po \
notes/$(DEPDIR)/bulk.Po notes/$(DEPDIR)/click.Po \
Expand Down Expand Up @@ -839,10 +837,10 @@ am__depfiles_remade = access/$(DEPDIR)/bible.Po \
unittests/$(DEPDIR)/merge.Po \
unittests/$(DEPDIR)/modifications.Po \
unittests/$(DEPDIR)/morphgnt.Po \
unittests/$(DEPDIR)/navigation.Po unittests/$(DEPDIR)/nmt.Po \
unittests/$(DEPDIR)/notes.Po unittests/$(DEPDIR)/odf.Po \
unittests/$(DEPDIR)/oshb.Po unittests/$(DEPDIR)/pairs.Po \
unittests/$(DEPDIR)/paratext.Po unittests/$(DEPDIR)/passage.Po \
unittests/$(DEPDIR)/navigation.Po unittests/$(DEPDIR)/notes.Po \
unittests/$(DEPDIR)/odf.Po unittests/$(DEPDIR)/oshb.Po \
unittests/$(DEPDIR)/pairs.Po unittests/$(DEPDIR)/paratext.Po \
unittests/$(DEPDIR)/passage.Po \
unittests/$(DEPDIR)/privileges.Po \
unittests/$(DEPDIR)/related.Po \
unittests/$(DEPDIR)/resources.Po unittests/$(DEPDIR)/roles.Po \
Expand Down Expand Up @@ -1585,9 +1583,7 @@ libbibledit_a_SOURCES = \
rss/feed.cpp \
microtar/microtar.c \
miniz/miniz.c \
nmt/index.cpp \
nmt/logic.cpp \
tbsx/text.cpp \
tbsx/text.cpp \
read/index.cpp \
read/load.cpp \
read/verse.cpp \
Expand Down Expand Up @@ -1746,7 +1742,6 @@ unittest_SOURCES = \
unittests/javascript.cpp \
unittests/french.cpp \
unittests/merge.cpp \
unittests/nmt.cpp \
unittests/html2format.cpp \
unittests/studylight.cpp \
unittests/gbs.cpp \
Expand Down Expand Up @@ -3305,14 +3300,6 @@ miniz/$(DEPDIR)/$(am__dirstamp):
@: >>miniz/$(DEPDIR)/$(am__dirstamp)
miniz/miniz.$(OBJEXT): miniz/$(am__dirstamp) \
miniz/$(DEPDIR)/$(am__dirstamp)
nmt/$(am__dirstamp):
@$(MKDIR_P) nmt
@: >>nmt/$(am__dirstamp)
nmt/$(DEPDIR)/$(am__dirstamp):
@$(MKDIR_P) nmt/$(DEPDIR)
@: >>nmt/$(DEPDIR)/$(am__dirstamp)
nmt/index.$(OBJEXT): nmt/$(am__dirstamp) nmt/$(DEPDIR)/$(am__dirstamp)
nmt/logic.$(OBJEXT): nmt/$(am__dirstamp) nmt/$(DEPDIR)/$(am__dirstamp)
tbsx/$(am__dirstamp):
@$(MKDIR_P) tbsx
@: >>tbsx/$(am__dirstamp)
Expand Down Expand Up @@ -3711,8 +3698,6 @@ unittests/french.$(OBJEXT): unittests/$(am__dirstamp) \
unittests/$(DEPDIR)/$(am__dirstamp)
unittests/merge.$(OBJEXT): unittests/$(am__dirstamp) \
unittests/$(DEPDIR)/$(am__dirstamp)
unittests/nmt.$(OBJEXT): unittests/$(am__dirstamp) \
unittests/$(DEPDIR)/$(am__dirstamp)
unittests/html2format.$(OBJEXT): unittests/$(am__dirstamp) \
unittests/$(DEPDIR)/$(am__dirstamp)
unittests/studylight.$(OBJEXT): unittests/$(am__dirstamp) \
Expand Down Expand Up @@ -3785,7 +3770,6 @@ mostlyclean-compile:
-rm -f mimetic098/rfc822/*.$(OBJEXT)
-rm -f miniz/*.$(OBJEXT)
-rm -f navigation/*.$(OBJEXT)
-rm -f nmt/*.$(OBJEXT)
-rm -f notes/*.$(OBJEXT)
-rm -f odf/*.$(OBJEXT)
-rm -f olb/*.$(OBJEXT)
Expand Down Expand Up @@ -4186,8 +4170,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@navigation/$(DEPDIR)/passage.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@navigation/$(DEPDIR)/poll.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@navigation/$(DEPDIR)/update.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@nmt/$(DEPDIR)/index.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@nmt/$(DEPDIR)/logic.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@notes/$(DEPDIR)/actions.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@notes/$(DEPDIR)/assign-1.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@notes/$(DEPDIR)/assign-n.Po@am__quote@ # am--include-marker
Expand Down Expand Up @@ -4414,7 +4396,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@unittests/$(DEPDIR)/modifications.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@unittests/$(DEPDIR)/morphgnt.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@unittests/$(DEPDIR)/navigation.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@unittests/$(DEPDIR)/nmt.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@unittests/$(DEPDIR)/notes.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@unittests/$(DEPDIR)/odf.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@unittests/$(DEPDIR)/oshb.Po@am__quote@ # am--include-marker
Expand Down Expand Up @@ -4941,8 +4922,6 @@ distclean-generic:
-$(am__rm_f) miniz/$(am__dirstamp)
-$(am__rm_f) navigation/$(DEPDIR)/$(am__dirstamp)
-$(am__rm_f) navigation/$(am__dirstamp)
-$(am__rm_f) nmt/$(DEPDIR)/$(am__dirstamp)
-$(am__rm_f) nmt/$(am__dirstamp)
-$(am__rm_f) notes/$(DEPDIR)/$(am__dirstamp)
-$(am__rm_f) notes/$(am__dirstamp)
-$(am__rm_f) odf/$(DEPDIR)/$(am__dirstamp)
Expand Down Expand Up @@ -5390,8 +5369,6 @@ distclean: distclean-am
-rm -f navigation/$(DEPDIR)/passage.Po
-rm -f navigation/$(DEPDIR)/poll.Po
-rm -f navigation/$(DEPDIR)/update.Po
-rm -f nmt/$(DEPDIR)/index.Po
-rm -f nmt/$(DEPDIR)/logic.Po
-rm -f notes/$(DEPDIR)/actions.Po
-rm -f notes/$(DEPDIR)/assign-1.Po
-rm -f notes/$(DEPDIR)/assign-n.Po
Expand Down Expand Up @@ -5618,7 +5595,6 @@ distclean: distclean-am
-rm -f unittests/$(DEPDIR)/modifications.Po
-rm -f unittests/$(DEPDIR)/morphgnt.Po
-rm -f unittests/$(DEPDIR)/navigation.Po
-rm -f unittests/$(DEPDIR)/nmt.Po
-rm -f unittests/$(DEPDIR)/notes.Po
-rm -f unittests/$(DEPDIR)/odf.Po
-rm -f unittests/$(DEPDIR)/oshb.Po
Expand Down Expand Up @@ -6078,8 +6054,6 @@ maintainer-clean: maintainer-clean-am
-rm -f navigation/$(DEPDIR)/passage.Po
-rm -f navigation/$(DEPDIR)/poll.Po
-rm -f navigation/$(DEPDIR)/update.Po
-rm -f nmt/$(DEPDIR)/index.Po
-rm -f nmt/$(DEPDIR)/logic.Po
-rm -f notes/$(DEPDIR)/actions.Po
-rm -f notes/$(DEPDIR)/assign-1.Po
-rm -f notes/$(DEPDIR)/assign-n.Po
Expand Down Expand Up @@ -6306,7 +6280,6 @@ maintainer-clean: maintainer-clean-am
-rm -f unittests/$(DEPDIR)/modifications.Po
-rm -f unittests/$(DEPDIR)/morphgnt.Po
-rm -f unittests/$(DEPDIR)/navigation.Po
-rm -f unittests/$(DEPDIR)/nmt.Po
-rm -f unittests/$(DEPDIR)/notes.Po
-rm -f unittests/$(DEPDIR)/odf.Po
-rm -f unittests/$(DEPDIR)/oshb.Po
Expand Down
6 changes: 0 additions & 6 deletions bootstrap/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <filter/date.h>
#include <filter/string.h>
#include <journal/logic.h>
#include <nmt/index.h>
#include <editor/id.h>
#include <editor/style.h>
#include <edit/update.h>
Expand Down Expand Up @@ -1130,11 +1129,6 @@ void bootstrap_index (Webserver_Request& webserver_request)
return;
}

if ((url == nmt_index_url ()) && browser_request_security_okay (webserver_request) && nmt_index_acl (webserver_request)) {
webserver_request.reply = nmt_index (webserver_request);
return;
}

if ((url == edit_update_url ()) && browser_request_security_okay (webserver_request) && edit_update_acl (webserver_request)) {
webserver_request.reply = edit_update (webserver_request);
return;
Expand Down
1 change: 0 additions & 1 deletion developer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ <h3>Developer</h3>
<p><a href="?debug=ipv6">Connect to http://ipv6.google.com</a></p>
<p><a href="?debug=ipv6s">Connect to https://ipv6.google.com</a></p>
<p><a href="?debug=maintain">Database maintenance</a></p>
<p><a href="../nmt/index">Neural Machine Translation</a></p>
<p>
<a href="javascript:;" onclick="showAlertWithTimeout ();">Show alert and block keyboard for a short time</a>
<input type="text" id="textinput">
Expand Down
109 changes: 0 additions & 109 deletions nmt/index.cpp

This file was deleted.

28 changes: 0 additions & 28 deletions nmt/index.h

This file was deleted.

8 changes: 0 additions & 8 deletions nmt/index.html

This file was deleted.

Loading

0 comments on commit fa50bd6

Please sign in to comment.